From a6c9f8ffae09d369af7e72e7fd8aa40dacede724 Mon Sep 17 00:00:00 2001 From: Luca Cavanna Date: Thu, 19 Sep 2019 09:34:52 +0200 Subject: [PATCH] [DOCS] mention automatic cancellation in search docs (#46706) Add a small note around automatic search cancellation which was missed as part of #43332 Relates to #43332 --- docs/reference/search.asciidoc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/reference/search.asciidoc b/docs/reference/search.asciidoc index 8b3cce80836..992b7c879ed 100644 --- a/docs/reference/search.asciidoc +++ b/docs/reference/search.asciidoc @@ -126,13 +126,10 @@ Setting this value to `-1` resets the global search timeout to no timeout. === Search Cancellation Searches can be cancelled using standard <> -mechanism. By default, a running search only checks if it is cancelled or -not on segment boundaries, therefore the cancellation can be delayed by large -segments. The search cancellation responsiveness can be improved by setting -the dynamic cluster-level setting `search.low_level_cancellation` to `true`. -However, it comes with an additional overhead of more frequent cancellation -checks that can be noticeable on large fast running search queries. Changing this -setting only affects the searches that start after the change is made. +mechanism and are also automatically cancelled when the http connection used to +perform the request is closed by the client. It is fundamental that the http +client sending requests closes connections whenever requests time out or are +aborted. [float] [[search-concurrency-and-parallelism]]