mirror of https://github.com/apache/lucene.git
tidy
This commit is contained in:
parent
4e40487cb8
commit
707279e7e8
|
@ -533,7 +533,8 @@ public class ToParentBlockJoinQuery extends Query {
|
||||||
}
|
}
|
||||||
|
|
||||||
BatchAwareLeafCollector wrappedCollector = wrapCollector(collector, acceptDocs);
|
BatchAwareLeafCollector wrappedCollector = wrapCollector(collector, acceptDocs);
|
||||||
// We don't propagate the acceptDocs since only parents are checked for deletion in the wrapped collector
|
// We don't propagate the acceptDocs since only parents are checked for deletion in the
|
||||||
|
// wrapped collector
|
||||||
childBulkScorer.score(wrappedCollector, null, prevParent + 1, lastParent + 1);
|
childBulkScorer.score(wrappedCollector, null, prevParent + 1, lastParent + 1);
|
||||||
wrappedCollector.endBatch();
|
wrappedCollector.endBatch();
|
||||||
|
|
||||||
|
|
|
@ -435,7 +435,12 @@ public class TestBlockJoinBulkScorer extends LuceneTestCase {
|
||||||
|
|
||||||
ScorerSupplier ss = weight.scorerSupplier(searcher.getIndexReader().leaves().get(0));
|
ScorerSupplier ss = weight.scorerSupplier(searcher.getIndexReader().leaves().get(0));
|
||||||
ss.setTopLevelScoringClause();
|
ss.setTopLevelScoringClause();
|
||||||
assertScores(reader.maxDoc(), ss.bulkScorer(), scoreMode, 6.0f, List.of(expectedScores1, expectedScores2));
|
assertScores(
|
||||||
|
reader.maxDoc(),
|
||||||
|
ss.bulkScorer(),
|
||||||
|
scoreMode,
|
||||||
|
6.0f,
|
||||||
|
List.of(expectedScores1, expectedScores2));
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -504,7 +509,8 @@ public class TestBlockJoinBulkScorer extends LuceneTestCase {
|
||||||
|
|
||||||
ScorerSupplier ss = weight.scorerSupplier(searcher.getIndexReader().leaves().get(0));
|
ScorerSupplier ss = weight.scorerSupplier(searcher.getIndexReader().leaves().get(0));
|
||||||
ss.setTopLevelScoringClause();
|
ss.setTopLevelScoringClause();
|
||||||
assertScores(reader.maxDoc(), ss.bulkScorer(), scoreMode, Math.nextUp(0f), expectedScores);
|
assertScores(
|
||||||
|
reader.maxDoc(), ss.bulkScorer(), scoreMode, Math.nextUp(0f), expectedScores);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue