OpenSearch/docs/reference/index-modules
Jim Ferenczi 787acb14b9
Track total hits up to 10,000 by default (#37466)
This commit changes the default for the `track_total_hits` option of the search request
to `10,000`. This means that by default search requests will accurately track the total hit count
up to `10,000` documents, requests that match more than this value will set the `"total.relation"`
to `"gte"` (e.g. greater than or equals) and the `"total.value"` to `10,000` in the search response.
Scroll queries are not impacted, they will continue to count the total hits accurately.
The default is set back to `true` (accurate hit count) if `rest_total_hits_as_int` is set in the search request.
I choose `10,000` as the default because that's also the number we use to limit pagination. This means that users will be able to know how far they can jump (up to 10,000) even if the total number of hits is not accurate.

Closes #33028
2019-01-25 13:45:39 +01:00
..
allocation Remove `include_type_name` in asciidoc where possible (#37568) 2019-01-18 09:34:11 +01: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 Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
mapper.asciidoc Docs: Mapping docs completely rewritten for 2.0 2015-08-06 17:24:51 +02:00
merge.asciidoc [DOCS] Added 'on a single shard' to description of max_thread_count. Closes 28518 (#29686) 2018-04-27 09:29:27 -07:00
similarity.asciidoc Remove remaining occurances of "include_type_name=true" in docs (#37646) 2019-01-22 15:13:52 +01:00
slowlog.asciidoc Logging: Make node name consistent in logger (#31588) 2018-07-31 10:54:24 -04:00
store.asciidoc Remove `include_type_name` in asciidoc where possible (#37568) 2019-01-18 09:34:11 +01:00
translog.asciidoc drop elasticsearch-translog for 7.0 (#33373) 2018-10-01 16:21:14 +02:00