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

##########
lucene/core/src/java/org/apache/lucene/search/PointRangeQuery.java:
##########
@@ -341,11 +341,10 @@ public ScorerSupplier scorerSupplier(LeafReaderContext 
context) throws IOExcepti
 
         if (allDocsMatch) {
           // all docs have a value and all points are within bounds, so 
everything matches
-          return new ScorerSupplier() {
+          return new ConstantScoreScorerSupplier(score(), scoreMode, 
reader.maxDoc()) {
             @Override
-            public Scorer get(long leadCost) {
-              return new ConstantScoreScorer(
-                  score(), scoreMode, DocIdSetIterator.all(reader.maxDoc()));
+            public DocIdSetIterator iterator(long leadCost) {
+              return DocIdSetIterator.all(reader.maxDoc());

Review Comment:
   Absolutely, I had planned to do this, this is a miss. Thanks for catching!



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