jpountz commented on a change in pull request #1351: LUCENE-9280: Collectors to
skip noncompetitive documents
URL: https://github.com/apache/lucene-solr/pull/1351#discussion_r410691342
##########
File path: lucene/core/src/java/org/apache/lucene/search/Weight.java
##########
@@ -201,19 +202,20 @@ public long cost() {
@Override
public int score(LeafCollector collector, Bits acceptDocs, int min, int
max) throws IOException {
collector.setScorer(scorer);
+ DocIdSetIterator scorerIterator = twoPhase == null? iterator :
twoPhase.approximation();
Review comment:
```suggestion
DocIdSetIterator scorerIterator = twoPhase == null ? iterator :
twoPhase.approximation();
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]