# There are no use of timeout for search?

**URL:** <https://discuss.elastic.co/t/there-are-no-use-of-timeout-for-search/75446>\
**Category:** Elasticsearch\
**Created:** [February 17, 2017, 8:15am UTC](https://discuss.elastic.co/t/there-are-no-use-of-timeout-for-search/75446 "2017-02-17T08:15:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![famoss](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@famoss](https://discuss.elastic.co/u/famoss)\
**Post date:** [February 17, 2017, 8:15am UTC](https://discuss.elastic.co/t/there-are-no-use-of-timeout-for-search/75446/1 "2017-02-17T08:15:38Z")

</div>

I set the search timeout by 1s,but there is no use.

url:`http://xxx:9200/flume-*/detail/_search?timeout=1s`

resp:`"took": 40356, "timed_out": true, "_shards": { "total": 495, "successful": 495, "failed": 0 },`

Is there any setting to make the `timeout` useful?

es V5.2.1

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [February 17, 2017, 12:51pm UTC](https://discuss.elastic.co/t/there-are-no-use-of-timeout-for-search/75446/2 "2017-02-17T12:51:36Z")

</div>

Most sections of code are time-checked but some are not e.g. if loading fielddata for the first time this un-inversion of data is for the benefit of potentially many queries not just the first one that needs fielddata so we don't abort that loop.  
However, other scenarios might be a runaway script that is doing something funky.

What query is causing this and what version are you on? It's useful for us to diagnose examples of runaway searches.

---

<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:** [March 17, 2017, 12:52pm UTC](https://discuss.elastic.co/t/there-are-no-use-of-timeout-for-search/75446/3 "2017-03-17T12:52:03Z")

</div>

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