mirror of https://github.com/apache/lucene.git
Same bound with fallbackQuery (#12084)
IndexSortSortedNumericDocValuesRangeQuery should have the same bound with fallbackQuery.
This commit is contained in:
parent
dc33ade76d
commit
a9fd21b6af
|
@ -250,6 +250,8 @@ Bug Fixes
|
|||
* GITHUB#12088: WeightedSpanTermExtractor should not throw UnsupportedOperationException
|
||||
when it encounters a FieldExistsQuery. (Alan Woodward)
|
||||
|
||||
* GITHUB#12084: Same bound with fallbackQuery. (Lu Xugang)
|
||||
|
||||
Optimizations
|
||||
---------------------
|
||||
* GITHUB#11738: Optimize MultiTermQueryConstantScoreWrapper when a term is present that matches all
|
||||
|
|
|
@ -682,7 +682,7 @@ public class TestIndexSortSortedNumericDocValuesRangeQuery extends LuceneTestCas
|
|||
|
||||
// Min bound doesn't exist in the dataset, max does
|
||||
fallbackQuery = LongPoint.newRangeQuery(filedName, 6, 9);
|
||||
query = new IndexSortSortedNumericDocValuesRangeQuery(filedName, 7, 10, fallbackQuery);
|
||||
query = new IndexSortSortedNumericDocValuesRangeQuery(filedName, 6, 9, fallbackQuery);
|
||||
weight = query.createWeight(searcher, ScoreMode.COMPLETE, 1.0f);
|
||||
for (LeafReaderContext context : searcher.getLeafContexts()) {
|
||||
assertEquals(1400, weight.count(context));
|
||||
|
@ -690,7 +690,7 @@ public class TestIndexSortSortedNumericDocValuesRangeQuery extends LuceneTestCas
|
|||
|
||||
// Min bound is the min value of the dataset
|
||||
fallbackQuery = LongPoint.newRangeQuery(filedName, 5, 8);
|
||||
query = new IndexSortSortedNumericDocValuesRangeQuery(filedName, 4, 8, fallbackQuery);
|
||||
query = new IndexSortSortedNumericDocValuesRangeQuery(filedName, 5, 8, fallbackQuery);
|
||||
weight = query.createWeight(searcher, ScoreMode.COMPLETE, 1.0f);
|
||||
for (LeafReaderContext context : searcher.getLeafContexts()) {
|
||||
assertEquals(1100, weight.count(context));
|
||||
|
|
Loading…
Reference in New Issue