[Feature Request] Expand the use of ApproximatePointRangeQuery
to other numeric ranges(int, long, float etc)
#14406
Labels
enhancement
Enhancement or improvement to existing feature or request
Search:Performance
v2.18.0
Issues and PRs related to version 2.18.0
v2.19.0
Issues and PRs related to version 2.19.0
Is your feature request related to a problem? Please describe
In #13788, we added support for approximating range queries(computing 10K hits). I did this in an incremental way and added support for only date range queries to limit the exposure since these are sensitive queries. We should incrementally expand support for all the numeric field types.
Describe the solution you'd like
Expand all current implementations of
IndexOrDocValuesQuery
s used in the number field type range queries to be wrapped in theApproximateableQuery
and use theApproximatePointRangeQuery
along withPointRangeQuery
. Similar to #13788 we can make a decision on which query to use during search time inContextIndexSearcher
and rewrite the weight appropriately.Related component
Search:Performance
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: