# Get number of matches from a search

**URL:** <https://discuss.elastic.co/t/get-number-of-matches-from-a-search/139834>\
**Category:** Kibana\
**Created:** [July 12, 2018, 8:51pm UTC](https://discuss.elastic.co/t/get-number-of-matches-from-a-search/139834 "2018-07-12T20:51:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adiep](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@adiep](https://discuss.elastic.co/u/adiep)\
**Post date:** [July 12, 2018, 8:51pm UTC](https://discuss.elastic.co/t/get-number-of-matches-from-a-search/139834/1 "2018-07-12T20:51:07Z")

</div>

Hi,  
I'm trying to get the number of matches from a search as a column in the Data Table (Visualization). For example, I have the following

title : Good title  
content : The quick brown fox jumps over the lazy **dog** while the **dog** is eating.

And If I query content:(dog), I would like to have a column in my table that shows for each item, how many matches there are. In this case, that would give me something like:  
Title | Count | **Matches**  
Good title | 1 | **2**

Is that possible?

Thank you  
Alex

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [July 12, 2018, 10:05pm UTC](https://discuss.elastic.co/t/get-number-of-matches-from-a-search/139834/2 "2018-07-12T22:05:12Z")

</div>

That is not possible. Each row in the data table visualization is showing the aggregated results for a bucket. The row does not have knowledge about any one particular document.

---

<div class="post-metadata">

**Author:** ![adiep](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@adiep](https://discuss.elastic.co/u/adiep)\
**Post date:** [July 13, 2018, 1:46pm UTC](https://discuss.elastic.co/t/get-number-of-matches-from-a-search/139834/3 "2018-07-13T13:46:15Z")

</div>

Actually, I just found about the \_score property. Is it possible to make a bucket or sub-bucket using that property? By that, I mean visualiize the \_score in the Data table. But the property doesn't seem to be present when I create the visualization.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 10, 2018, 1:46pm UTC](https://discuss.elastic.co/t/get-number-of-matches-from-a-search/139834/4 "2018-08-10T13:46:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
