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:
Robert Muir 2015-04-28 11:31:31 +00:00
parent 4b305e9fc9
commit 596e82b59f
1 changed files with 4 additions and 0 deletions

View File

@ -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) {