[Feature Request] Optimize UnsignedLong
range queries to convert to MatchNoDocsQuery
when lower > upper bounds
#14404
Labels
enhancement
Enhancement or improvement to existing feature or request
good first issue
Good for newcomers
Search:Performance
v2.16.0
Issues and PRs related to version 2.16.0
v3.0.0
Issues and PRs related to version 3.0.0
Is your feature request related to a problem? Please describe
Coming from apache/lucene#13425, we see that most number fields can take advantage of the optimization when lower value > upper value when doing a range query by default. However,
UnsignedLong
uses its own implementation ofSortedUnsignedLongDocValuesRangeQuery
that could be optimized with the same change.Describe the solution you'd like
In
OpenSearch/server/src/main/java/org/opensearch/index/mapper/NumberFieldMapper.java
Line 1309 in 21d3aaa
MatchNoDocsQuery
if so.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: