Question regarding the timeout option in search query

When we set up the timeout in a search query, it will timeout if it goes beyond the threshold. ( I know it is kinda best effort value).

My question about this is that, once the search query gets timeout, will the execution of query also get cancelled? Or it just early returns the result to the caller but it will continue its execution and keep consuming the resources.

If the answer is the latter one, is there any way to also early terminate the query execution if the query is quite expensive and takes so long? (Other than that manually killing the task id like Search APIs | Elasticsearch Reference [6.8] | Elastic suggests)

Thanks in advance.

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