# Kibana 4.3.0 uses sometimes field\_stats and sometimes \_msearch for fetching data

**URL:** <https://discuss.elastic.co/t/kibana-4-3-0-uses-sometimes-field-stats-and-sometimes--msearch-for-fetching-data/38081>\
**Category:** Kibana\
**Created:** [December 28, 2015, 11:48pm UTC](https://discuss.elastic.co/t/kibana-4-3-0-uses-sometimes-field-stats-and-sometimes--msearch-for-fetching-data/38081 "2015-12-28T23:48:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![soodlikesjava](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@soodlikesjava](https://discuss.elastic.co/u/soodlikesjava)\
**Post date:** [December 28, 2015, 11:48pm UTC](https://discuss.elastic.co/t/kibana-4-3-0-uses-sometimes-field-stats-and-sometimes--msearch-for-fetching-data/38081/1 "2015-12-28T23:48:52Z")

</div>

Hi Team ,  
I am using Kibana 4.3.0 with ES 2.1 and i am using Kibana Quick view to fetch 1 year old indexed data , when i am selecting Last 1 year in Quick view then sometime \_msearch api is called and sometime field\_stats api is called to fetch the results . Can you please let me know the reason behind that ? As i am getting error in case of Field\_stats call that IllegalArgumentException field [time] does not exist in Elasticsearch .

---

<div class="post-metadata">

**Author:** ![Joshua\_Rich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshua_rich/32/44953_2.png) [@Joshua\_Rich](https://discuss.elastic.co/u/Joshua_Rich)\
**Post date:** [December 29, 2015, 4:21am UTC](https://discuss.elastic.co/t/kibana-4-3-0-uses-sometimes-field-stats-and-sometimes--msearch-for-fetching-data/38081/2 "2015-12-29T04:21:54Z")

</div>

Kibana uses the field stats API to work out which indices need to be queried based on the time range you are searching over. The msearch API call is the actual search that Kibana conducts under the hood.

Can you paste the full exception trace you see in Kibana? If you have access to the Elasticsearch cluster logs, pasting the corresponding exception from that log will also help.

---

<div class="post-metadata">

**Author:** ![soodlikesjava](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@soodlikesjava](https://discuss.elastic.co/u/soodlikesjava)\
**Post date:** [December 29, 2015, 6:33am UTC](https://discuss.elastic.co/t/kibana-4-3-0-uses-sometimes-field-stats-and-sometimes--msearch-for-fetching-data/38081/3 "2015-12-29T06:33:03Z")

</div>

Hi thanks for replying and clarifying the query .actually the issue is resolved, my index mapping was not updated at kibana end due to which I was getting error.Thanks

---

<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:05pm UTC](https://discuss.elastic.co/t/kibana-4-3-0-uses-sometimes-field-stats-and-sometimes--msearch-for-fetching-data/38081/4 "2017-07-06T14:05:54Z")

</div>


