OpenSearch/docs/reference/search/request
Jim Ferenczi e38cf1d0dc
Add the ability to set the number of hits to track accurately (#36357)
In Lucene 8 searches can skip non-competitive hits if the total hit count is not requested.
It is also possible to track the number of hits up to a certain threshold. This is a trade off to speed up searches while still being able to know a lower bound of the total hit count. This change adds the ability to set this threshold directly in the track_total_hits search option. A boolean value (true, false) indicates whether the total hit count should be tracked in the response. When set as an integer this option allows to compute a lower bound of the total hits while preserving the ability to skip non-competitive hits when enough matches have been collected.

Relates #33028
2019-01-04 20:36:49 +01:00
..
collapse.asciidoc [Docs] Remove repeating words (#33087) 2018-08-28 13:16:43 +02:00
docvalue-fields.asciidoc Search: Support of wildcard on docvalue_fields (#32980) 2018-08-23 10:04:00 +02:00
explain.asciidoc Add CONSOLE to several trivial search request docs. 2016-05-18 13:15:19 +02:00
from-size.asciidoc Add CONSOLE to from/size docs 2016-05-18 11:54:41 +02:00
highlighters-internal.asciidoc [DOCS] Update highlighting docs (#28802) 2018-04-18 17:41:19 -04:00
highlighting.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
index-boost.asciidoc Resolve index names in indices_boost 2016-12-11 21:41:49 +09:00
inner-hits.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
min-score.asciidoc Add CONSOLE to several trivial search request docs. 2016-05-18 13:15:19 +02:00
named-queries-and-filters.asciidoc Add indent 2016-05-19 09:33:29 +02:00
post-filter.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
preference.asciidoc Improve docs for search preferences (#32159) 2018-07-18 12:58:17 +01:00
query.asciidoc Add CONSOLE to several trivial search request docs. 2016-05-18 13:15:19 +02:00
rescore.asciidoc [Docs] Clarify accepted sort case (#31605) 2018-07-06 10:11:36 +02:00
script-fields.asciidoc [Docs] Fix script-fields snippet execution (#30693) 2018-05-22 20:22:42 +02:00
scroll.asciidoc Added soft limit to open scroll contexts #25244 (#36009) 2018-12-03 19:57:10 +01:00
search-after.asciidoc [Docs] Clarify search_after behavior 2018-11-30 14:30:23 +01:00
search-type.asciidoc Fix a grammatical error in the 'search types' documentation. 2018-05-22 22:09:04 -07:00
sort.asciidoc Add max_children limit to nested sort (#33587) 2018-10-05 12:02:47 +02:00
source-filtering.asciidoc Fixed naming inconsistency for fields/stored_fields in the APIs (#20166) 2016-09-13 20:54:41 +02:00
stored-fields.asciidoc Remove usage of multi-types from the docs and added a page explaining type removal (#25543) 2017-07-05 12:30:19 +02:00
track-total-hits.asciidoc Add the ability to set the number of hits to track accurately (#36357) 2019-01-04 20:36:49 +01:00
version.asciidoc Add CONSOLE to version docs 2016-05-18 15:32:48 +02:00