# Default search timeout doesn't work

**URL:** <https://discuss.elastic.co/t/default-search-timeout-doesnt-work/350726>\
**Category:** Elasticsearch\
**Created:** [January 10, 2024, 10:06am UTC](https://discuss.elastic.co/t/default-search-timeout-doesnt-work/350726 "2024-01-10T10:06:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon90868141](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon90868141](https://discuss.elastic.co/u/anon90868141)\
**Post date:** [January 10, 2024, 10:06am UTC](https://discuss.elastic.co/t/default-search-timeout-doesnt-work/350726/1 "2024-01-10T10:06:24Z")

</div>

Hello,

it seems like the following settings do not work for elasticsearch 7.17.10:

```auto
PUT _cluster/settings
{
  "persistent": {
    "search.default_search_timeout": "300s",
    "search.low_level_cancellation": "true"
  }
}

```

Long running searches are still not cancelled. Is there anything I can configure additionally?

Thanks

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [January 10, 2024, 3:15pm UTC](https://discuss.elastic.co/t/default-search-timeout-doesnt-work/350726/2 "2024-01-10T15:15:36Z")

</div>

Hi @anon90868141

You may need to restart the nodes for the settings to take effect. Another option is to configure the request timeout in the client lib you were using.

---

<div class="post-metadata">

**Author:** ![anon90868141](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon90868141](https://discuss.elastic.co/u/anon90868141)\
**Post date:** [January 11, 2024, 9:59am UTC](https://discuss.elastic.co/t/default-search-timeout-doesnt-work/350726/3 "2024-01-11T09:59:46Z")

</div>

I did a rolling restart and the searches are still not being cancelled. Any other ideas?

---

<div class="post-metadata">

**Author:** ![anon90868141](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon90868141](https://discuss.elastic.co/u/anon90868141)\
**Post date:** [January 29, 2024, 7:44am UTC](https://discuss.elastic.co/t/default-search-timeout-doesnt-work/350726/4 "2024-01-29T07:44:39Z")

</div>

Any further ideas?

---

<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:** [February 26, 2024, 7:45am UTC](https://discuss.elastic.co/t/default-search-timeout-doesnt-work/350726/5 "2024-02-26T07:45:24Z")

</div>

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