gf2121 commented on code in PR #14293:
URL: https://github.com/apache/lucene/pull/14293#discussion_r1971065012


##########
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:
   Not related to this PR: Should we actually return a null `ScoreSupplier` to 
short cut following scorer building?



-- 
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

Reply via email to