Skip to content

Commit

Permalink
[DOCS] mention automatic cancellation in search docs (#46706)
Browse files Browse the repository at this point in the history
Add a small note around automatic search cancellation which was missed as part of #43332

Relates to #43332
  • Loading branch information
javanna committed Sep 19, 2019
1 parent 3be51fb commit a6c9f8f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docs/reference/search.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<task-cancellation,task cancellation>>
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]]
Expand Down

0 comments on commit a6c9f8f

Please sign in to comment.