# Search request's timeout doesn't work as expected

**URL:** <https://discuss.elastic.co/t/search-requests-timeout-doesnt-work-as-expected/328247>\
**Category:** Elasticsearch\
**Created:** [March 22, 2023, 12:45pm UTC](https://discuss.elastic.co/t/search-requests-timeout-doesnt-work-as-expected/328247 "2023-03-22T12:45:11Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Mark\_Harwood1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood1/32/101255_2.png) [@Mark\_Harwood1](https://discuss.elastic.co/u/Mark_Harwood1)\
**Post date:** [March 23, 2023, 4:45pm UTC](https://discuss.elastic.co/t/search-requests-timeout-doesnt-work-as-expected/328247/10 "2023-03-23T16:45:51Z")

</div>

The cost is linear with:

1. the number of docs sampled
2. the length of the text in each of the docs
3. the number of unique terms found in the sample that need their background frequency looking up.

The “usual” cost depends on all these factors.  
I haven’t seen anything in your trials that suggests the observed costs aren’t following this profile.

---

_[View the full topic](https://discuss.elastic.co/t/search-requests-timeout-doesnt-work-as-expected/328247)._
