mirror of https://github.com/apache/lucene.git
fix test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1676489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b305e9fc9
commit
596e82b59f
|
@ -521,6 +521,10 @@ public class QueryUtils {
|
|||
final BulkScorer bulkScorer = weight.bulkScorer(context, context.reader().getLiveDocs());
|
||||
if (scorer == null && bulkScorer == null) {
|
||||
continue;
|
||||
} else if (bulkScorer == null) {
|
||||
// ensure scorer is exhausted (it just didnt return null)
|
||||
assert scorer.nextDoc() == DocIdSetIterator.NO_MORE_DOCS;
|
||||
continue;
|
||||
}
|
||||
int upTo = 0;
|
||||
while (true) {
|
||||
|
|
Loading…
Reference in New Issue