kalayciburak opened a new pull request, #16575: URL: https://github.com/apache/lucene/pull/16575
### Description `SortedNumericDocValuesRangeQuery.rewrite` used `NumericFieldStats.getStats`, which prefers `PointValues`. Point encodings can differ from doc-values (for example `DoublePoint` vs `Double.doubleToLongBits` on `NumericDocValuesField`), so a valid doc-values range was rewritten to `MatchNoDocsQuery`. `IndexOrDocValuesQuery` then dropped the hits as well. This rewrite now uses skipper-only stats. When no skipper is present, the min/max optimization is skipped and the query runs against the actual doc-values. Fixes #16573 ### Tests - `./gradlew :lucene:core:test --tests org.apache.lucene.document.TestSortedNumericDocValuesRangeQuery --tests org.apache.lucene.search.TestNumericFieldStats --tests org.apache.lucene.search.TestIndexSortSortedNumericDocValuesRangeQuery --tests org.apache.lucene.document.TestDoubleRange --tests org.apache.lucene.document.TestFloatRange` (44 tests) - `./gradlew :lucene:sandbox:test --tests org.apache.lucene.sandbox.document.TestHalfFloatPoint.testNumericFieldStats` (1 test) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
