OpenSearch/docs/reference/search
Jim Ferenczi 7dc00ef1f5
Search option terminate_after does not handle post_filters and aggregations correctly (#28459)
* Search option terminate_after does not handle post_filters and aggregations correctly

This change fixes the handling of the `terminate_after` option when post_filters (or min_score) are used.
`post_filter` should be applied before `terminate_after` in order to terminate the query when enough document are accepted
by the post_filters.
This commit also changes the type of exception thrown by `terminate_after` in order to ensure that multi collectors (aggregations)
do not try to continue the collection when enough documents have been collected.

Closes #28411
2018-02-12 13:36:33 +01:00
..
request [Docs] Fix typo in inner-hits.asciidoc (#27998) 2018-01-31 11:55:53 +01:00
suggesters Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
count.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
explain.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
field-caps.asciidoc Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
multi-search.asciidoc Scripting: Deprecate stored search template apis (#25437) 2017-07-12 16:07:28 -07:00
profile.asciidoc [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
rank-eval.asciidoc Add ranking evaluation API to High Level Rest Client (#28357) 2018-01-30 17:48:09 +01:00
request-body.asciidoc Search option terminate_after does not handle post_filters and aggregations correctly (#28459) 2018-02-12 13:36:33 +01:00
search-shards.asciidoc Automatically prepare indices for splitting (#27451) 2017-11-23 09:48:54 +01:00
search-template.asciidoc [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
search.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
suggesters.asciidoc Use `typed_keys` parameter to prefix suggester names by type in search responses (#23080) 2017-02-10 10:53:38 +01:00
uri-request.asciidoc Search - add allow_partial_search_results flag with default setting false (#28440) 2018-01-31 15:51:29 +00:00
validate.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00