OpenSearch/modules/lang-mustache
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
..
licenses Dependencies: Updates to mustache 0.9.3 (#20337) 2016-09-06 13:31:59 +02:00
src Add the ability to set the number of hits to track accurately (#36357) 2019-01-04 20:36:49 +01:00
build.gradle ScriptService: Replace max compilation per minute setting with max compilation rate (#26399) 2017-09-01 10:15:27 +02:00