mayya-sharipova commented on a change in pull request #1952: URL: https://github.com/apache/lucene-solr/pull/1952#discussion_r500412063
########## File path: lucene/core/src/java/org/apache/lucene/search/Weight.java ########## @@ -204,9 +204,14 @@ public int score(LeafCollector collector, Bits acceptDocs, int min, int max) thr collector.setScorer(scorer); DocIdSetIterator scorerIterator = twoPhase == null ? iterator : twoPhase.approximation(); DocIdSetIterator collectorIterator = collector.competitiveIterator(); - // if possible filter scorerIterator to keep only competitive docs as defined by collector - DocIdSetIterator filteredIterator = collectorIterator == null ? scorerIterator : - ConjunctionDISI.intersectIterators(Arrays.asList(scorerIterator, collectorIterator)); + DocIdSetIterator filteredIterator = scorerIterator; + if (collectorIterator != null) { + if (scorerIterator.docID() != -1) { + collectorIterator.advance(scorerIterator.docID()); + } Review comment: @jpountz Addressed in cba6cf75f48a26cd48f09152c25518c91fd6660d ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org