OpenSearch/x-pack/plugin/sql
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
..
jdbc SQL: Introduce SQL DATE data type (#37693) 2019-01-24 13:41:58 +02:00
qa SQL: Fix issue with complex expression as args of PERCENTILE/_RANK (#37102) 2019-01-24 18:40:20 +02:00
sql-action SQL: Fix BasicFormatter NPE (#37804) 2019-01-24 15:40:51 +02:00
sql-cli SQL: Return Intervals in SQL format for CLI (#37602) 2019-01-22 14:55:28 +02:00
sql-client SQL: Return Intervals in SQL format for CLI (#37602) 2019-01-22 14:55:28 +02:00
sql-proto SQL: Return Intervals in SQL format for CLI (#37602) 2019-01-22 14:55:28 +02:00
src Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
build.gradle SQL: [Tests] Fix and enable internalClusterTests (#37300) 2019-01-11 22:43:17 +02:00