Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LUCENE-9555 Ensure scorerIterator is fresh for opt
Some collectors provide iterators that can efficiently skip non-competitive docs. When using DefaultBulkScorer#score function we create a conjunction of scorerIterator and collectorIterator. As collectorIterator always starts from a docID = -1, and for creation of conjunction iterator we need all of its sub-iterators to be on the same doc, the creation of conjuction iterator will fail if scorerIterator has already been advanced to some other document. This patch ensures that we create conjunction between scorerIterator and collectorIterator only if scorerIterator has not been advanced yet. Relates to apache#1725 Relates to apache#1937
- Loading branch information