OpenSearch/x-pack/plugin
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
..
ccr Fail with a dedicated exception if remote connection is missing or (#37767) 2019-01-25 08:53:18 +01:00
core Freezing an index should increase its index settings version (#37813) 2019-01-25 11:27:27 +01:00
deprecation Remove obsolete deprecation checks (#37510) 2019-01-18 14:24:34 -07:00
graph Remove X-Pack centric graph endpoints (#36010) 2018-11-29 07:09:37 -05:00
ilm Use ILM for Watcher history deletion (#37443) 2019-01-23 10:18:08 -07:00
logstash Rename confusing variable holding name of Logstash index template (#36840) 2018-12-19 12:09:37 -07:00
ml Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
monitoring Deprecate xpack.watcher.history.cleaner_service.enabled (#37782) 2019-01-24 15:31:31 -07:00
rollup Switch mapping/aggregations over to java time (#36363) 2019-01-23 10:40:05 +01:00
security Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
sql Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
src/test ML: creating ML State write alias and pointing writes there (#37483) 2019-01-18 14:32:34 -06:00
upgrade Converting randomized testing to create a separate unitTest task instead of replacing the builtin test task (#36311) 2018-12-19 08:25:20 +02:00
watcher Use ILM for Watcher history deletion (#37443) 2019-01-23 10:18:08 -07:00
build.gradle Simplify integ test distribution types (#37618) 2019-01-21 12:37:17 -08:00