mirror of https://github.com/apache/lucene.git
Fix failure in TestIndexSortSortedNumericDocValuesRangeQuery.testCountBoundary (#12098)
This commit is contained in:
parent
fa5dcbad9f
commit
519adcc954
|
@ -596,9 +596,11 @@ public class TestIndexSortSortedNumericDocValuesRangeQuery extends LuceneTestCas
|
|||
new IndexSortSortedNumericDocValuesRangeQuery(
|
||||
"field", lowerValue, upperValue, fallbackQuery);
|
||||
Weight weight = query.createWeight(searcher, ScoreMode.COMPLETE, 1.0f);
|
||||
int count = 0;
|
||||
for (LeafReaderContext context : searcher.getLeafContexts()) {
|
||||
assertEquals(2, weight.count(context));
|
||||
count += weight.count(context);
|
||||
}
|
||||
assertEquals(2, count);
|
||||
|
||||
writer.close();
|
||||
reader.close();
|
||||
|
|
Loading…
Reference in New Issue