Skip to content

[Feature Request] Expand the use of ApproximatePointRangeQuery to other numeric ranges(int, long, float etc) #14406

@harshavamsi

Description

@harshavamsi

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 IndexOrDocValuesQuerys used in the number field type range queries to be wrapped in the ApproximateableQuery and use the ApproximatePointRangeQuery along with PointRangeQuery. Similar to #13788 we can make a decision on which query to use during search time in ContextIndexSearcher and rewrite the weight appropriately.

Related component

Search:Performance

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Labels

Type

No type

Projects

Status

✅ Done

Status

Done

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions