OpenSearch/docs/reference/index-modules
Jim Ferenczi 36a5cf8f35 Automatically early terminate search query based on index sorting (#24864)
This commit refactors the query phase in order to be able
to automatically detect queries that can be early terminated.
If the index sort matches the query sort, the top docs collection is early terminated
on each segment and the computing of the total number of hits that match the query is delegated to a simple TotalHitCountCollector.
This change also adds a new parameter to the search request called `track_total_hits`.
It indicates if the total number of hits that match the query should be tracked.
If false, queries sorted by the index sort will not try to compute this information and 
and will limit the collection to the first N documents per segment.
Aggregations are not impacted and will continue to see every document
even when the index sort matches the query sort and `track_total_hits` is false.

Relates #6720
2017-06-08 12:10:46 +02:00
..
allocation Fix some typos (#18746) 2016-06-07 16:41:39 +02:00
allocation.asciidoc Docs: Documented index prioritization 2015-07-15 18:05:42 +02:00
analysis.asciidoc Fixing typo 2015-10-26 16:48:20 -04:00
index-sorting.asciidoc Automatically early terminate search query based on index sorting (#24864) 2017-06-08 12:10:46 +02:00
mapper.asciidoc Docs: Mapping docs completely rewritten for 2.0 2015-08-06 17:24:51 +02:00
merge.asciidoc Redocument the `index.merge.scheduler.max_thread_count` setting 2016-03-05 16:28:43 +01:00
similarity.asciidoc Upgrade to a Lucene 7 snapshot (#24089) 2017-04-18 15:17:21 +02:00
slowlog.asciidoc Restores the original default format of search slow log 2016-12-09 12:38:28 -05:00
store.asciidoc Update store.asciidoc (#21353) 2016-11-05 14:58:16 +01:00
translog.asciidoc Add documentation for the 'elasticsearch-translog' tool 2016-08-02 16:26:28 -06:00