LuXugang opened a new issue, #12074: URL: https://github.com/apache/lucene/issues/12074
### Description Since dim of XXXField's point value is always `1`, should we introduce `IndexSortSortedNumericDocValuesRangeQuery` to `IntFiled#newRangeQuery` and `LongField#newRangeQuery` ? This idea is also mentioned by @jpountz in [LUCENE-10446](https://issues.apache.org/jira/browse/LUCENE-10446). like : ```java public static Query newRangeQuery(String field, int lowerValue, int upperValue) { PointRangeQuery.checkArgs(field, lowerValue, upperValue); Query fallbackQuery = IntPoint.newRangeQuery(field, lowerValue, upperValue); return new IndexOrDocValuesQuery( new IndexSortSortedNumericDocValuesRangeQuery(field, lowerValue, upperValue, fallbackQuery), SortedNumericDocValuesField.newSlowRangeQuery(field, lowerValue, upperValue)); } ``` If above is possible, we should also need to move `IndexSortSortedNumericDocValuesRangeQuery` from sandbox to core module? -- 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]
