# Query search maximum time

**URL:** <https://discuss.elastic.co/t/query-search-maximum-time/16580>\
**Category:** Elasticsearch\
**Created:** [March 25, 2014, 8:07am UTC](https://discuss.elastic.co/t/query-search-maximum-time/16580 "2014-03-25T08:07:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robin\_thakur](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@robin\_thakur](https://discuss.elastic.co/u/robin_thakur)\
**Post date:** [March 25, 2014, 8:07am UTC](https://discuss.elastic.co/t/query-search-maximum-time/16580/1 "2014-03-25T08:07:38Z")

</div>

hi,

Is there any API in elastic search to get information regarding the query  
which is search maximum time, menas this query has maximum hit counts.

thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a0725da5-57bb-42d7-ad57-890ea7e64a0f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a0725da5-57bb-42d7-ad57-890ea7e64a0f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![mkleen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mkleen/32/1694_2.png) [@mkleen](https://discuss.elastic.co/u/mkleen)\
**Post date:** [March 25, 2014, 8:09am UTC](https://discuss.elastic.co/t/query-search-maximum-time/16580/2 "2014-03-25T08:09:52Z")

</div>

Hi robin,

have a look at

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Michael

On 25 March 2014 09:07, robin thakur [thakurrobin7@gmail.com](mailto:thakurrobin7@gmail.com) wrote:

> hi,
> 
> Is there any API in Elasticsearch to get information regarding the query  
> which is search maximum time, menas this query has maximum hit counts.
> 
> thanks
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a0725da5-57bb-42d7-ad57-890ea7e64a0f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a0725da5-57bb-42d7-ad57-890ea7e64a0f%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a0725da5-57bb-42d7-ad57-890ea7e64a0f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a0725da5-57bb-42d7-ad57-890ea7e64a0f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAALawn5uWF%3D1i%2BysEFoYVOGnHLGCL0AS2cDTk960mNJ4EL%3Ds6g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAALawn5uWF%3D1i%2BysEFoYVOGnHLGCL0AS2cDTk960mNJ4EL%3Ds6g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![robin\_thakur](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@robin\_thakur](https://discuss.elastic.co/u/robin_thakur)\
**Post date:** [March 25, 2014, 8:22am UTC](https://discuss.elastic.co/t/query-search-maximum-time/16580/3 "2014-03-25T08:22:07Z")

</div>

Hi mkleen,

I am not getting answer, I want to know that whether elastic search store  
the query history in itself. So that I get the history of all queries with  
there count

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1f1b2e4e-9b2b-4a6d-8418-26c2f15b6ee6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1f1b2e4e-9b2b-4a6d-8418-26c2f15b6ee6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [March 25, 2014, 1:53pm UTC](https://discuss.elastic.co/t/query-search-maximum-time/16580/4 "2014-03-25T13:53:17Z")

</div>

It is possible to turn on query slowlog log to get what you want. For  
example, you can go into the ES.yml file, and set this line (restart ES):

index.search.slowlog.threshold.query.warn: 1ms

And that will likely log all queries that you run into the slowlog.log file.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dfbd98bd-f156-4a50-b087-6060249a0d8e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dfbd98bd-f156-4a50-b087-6060249a0d8e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:40am UTC](https://discuss.elastic.co/t/query-search-maximum-time/16580/5 "2017-07-06T01:40:47Z")

</div>


