# Total Hits per index when searching accross multiple indices?

**URL:** <https://discuss.elastic.co/t/total-hits-per-index-when-searching-accross-multiple-indices/10429>\
**Category:** Elasticsearch\
**Created:** [January 20, 2013, 4:13pm UTC](https://discuss.elastic.co/t/total-hits-per-index-when-searching-accross-multiple-indices/10429 "2013-01-20T16:13:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_van\_Cleef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevin_van_cleef/32/2382_2.png) [@Kevin\_van\_Cleef](https://discuss.elastic.co/u/Kevin_van_Cleef)\
**Post date:** [January 20, 2013, 4:13pm UTC](https://discuss.elastic.co/t/total-hits-per-index-when-searching-accross-multiple-indices/10429/1 "2013-01-20T16:13:55Z")

</div>

Hi All,

Is it possible to get the total hits _per index_ when searching on accross  
multiple indices in ES?

Regards,  
Kevin

--

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 20, 2013, 4:47pm UTC](https://discuss.elastic.co/t/total-hits-per-index-when-searching-accross-multiple-indices/10429/2 "2013-01-20T16:47:49Z")

</div>

I'm wondering if you can try a TermFacet on \_index field?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 janv. 2013 à 17:13, Kevin van Cleef [kevinvancleef@gmail.com](mailto:kevinvancleef@gmail.com) a écrit :

> Hi All,
> 
> Is it possible to get the total hits per index when searching on accross multiple indices in ES?
> 
> ## Regards, Kevin

--

---

<div class="post-metadata">

**Author:** ![Kevin\_van\_Cleef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevin_van_cleef/32/2382_2.png) [@Kevin\_van\_Cleef](https://discuss.elastic.co/u/Kevin_van_Cleef)\
**Post date:** [January 20, 2013, 6:12pm UTC](https://discuss.elastic.co/t/total-hits-per-index-when-searching-accross-multiple-indices/10429/3 "2013-01-20T18:12:43Z")

</div>

Thanks David!, That worked, Didn't thought of that!

Kevin

Op zondag 20 januari 2013 17:47:49 UTC+1 schreef David Pilato het volgende:

> I'm wondering if you can try a TermFacet on \_index field?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 20 janv. 2013 à 17:13, Kevin van Cleef \<[kevinv...@gmail.com](mailto:kevinv...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> Hi All,
> 
> Is it possible to get the total hits _per index_ when searching on  
> accross multiple indices in ES?
> 
> Regards,  
> Kevin
> 
> --

--

---

<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:** [July 6, 2017, 2:55am UTC](https://discuss.elastic.co/t/total-hits-per-index-when-searching-accross-multiple-indices/10429/4 "2017-07-06T02:55:28Z")

</div>

Closed on July 6, 2017, 2:55am UTC


