jpountz commented on code in PR #14293: URL: https://github.com/apache/lucene/pull/14293#discussion_r1971643383
########## lucene/core/src/java/org/apache/lucene/document/SortedSetDocValuesRangeQuery.java: ########## @@ -158,16 +157,15 @@ public Scorer get(long leadCost) throws IOException { if (minOrd > maxOrd || (skipper != null && (minOrd > skipper.maxValue() || maxOrd < skipper.minValue()))) { - return new ConstantScoreScorer(score(), scoreMode, DocIdSetIterator.empty()); + return DocIdSetIterator.empty(); Review Comment: Good question, I'm not sure we can. This would require doing I/O in `scorerSupplier()`, which would break Lucene's I/O parallelism. -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org