# Es query returns hits mismatch on .kibana index

**URL:** <https://discuss.elastic.co/t/es-query-returns-hits-mismatch-on-kibana-index/48452>\
**Category:** Elasticsearch\
**Created:** [April 26, 2016, 3:52pm UTC](https://discuss.elastic.co/t/es-query-returns-hits-mismatch-on-kibana-index/48452 "2016-04-26T15:52:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsps/32/5411_2.png) [@jsps](https://discuss.elastic.co/u/jsps)\
**Post date:** [April 26, 2016, 3:52pm UTC](https://discuss.elastic.co/t/es-query-returns-hits-mismatch-on-kibana-index/48452/1 "2016-04-26T15:52:21Z")

</div>

I have several indices, they all look like this:

systemname-envname.uniqueid.timestamp

In kibana I've played around and created several index patterns, some like this:

[systemname-envname.id](http://systemname-envname.id).\*

and some like this

[systemname-envname.id](http://systemname-envname.id)\*

When I query the .kibana index it does not return the index patterns that end ".\*"

I'm using sense and this is my query:

GET .kibana/\_search?type=index-pattern  
{  
"fields": []  
}

the response "hits" total is always correct, but the "hits" array does not include those index-patterns ending "._", so for example :  
"hits": {  
"total": 14, \<-- correct  
"max\_score": 1,  
"hits": [  
{ ... } \<--- only 10 elements in here , everything except those ending ._

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2016, 5:52am UTC](https://discuss.elastic.co/t/es-query-returns-hits-mismatch-on-kibana-index/48452/2 "2016-04-27T05:52:45Z")

</div>

You need to increase the `size` value in the query - [https://www.elastic.co/guide/en/elasticsearch/reference/2.3/search-request-from-size.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/search-request-from-size.html)

---

<div class="post-metadata">

**Author:** ![jsps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsps/32/5411_2.png) [@jsps](https://discuss.elastic.co/u/jsps)\
**Post date:** [April 27, 2016, 9:51am UTC](https://discuss.elastic.co/t/es-query-returns-hits-mismatch-on-kibana-index/48452/3 "2016-04-27T09:51:01Z")

</div>

Great thank you Mark, this was the issue - just a red herring that the the patterns missing were all the same structure.

---

<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 5, 2017, 10:56pm UTC](https://discuss.elastic.co/t/es-query-returns-hits-mismatch-on-kibana-index/48452/4 "2017-07-05T22:56:00Z")

</div>


