Merge pull request #12997 from jpountz/fix/doc_scroll_close

Fix documentation: scrolls are not closed automatically.
This commit is contained in:
Adrien Grand 2015-08-20 09:24:02 +02:00
commit 7662705f37
1 changed files with 5 additions and 3 deletions

View File

@ -176,9 +176,11 @@ curl -XGET localhost:9200/_nodes/stats/indices/search?pretty
==== Clear scroll API
Search contexts are removed automatically either when all results have been
retrieved or when the `scroll` timeout has been exceeded. However, you can
clear a search context manually with the `clear-scroll` API:
Search context are automatically removed when the `scroll` timeout has been
exceeded. However keeping scrolls open has a cost, as discussed in the
<<scroll-search-context,previous section>> so scrolls should be explicitly
cleared as soon as the scroll is not being used anymore using the
`clear-scroll` API:
[source,js]
---------------------------------------