This commit is contained in:
Jim Ferenczi 2024-12-15 09:18:39 +00:00
parent 4e40487cb8
commit 707279e7e8
2 changed files with 10 additions and 3 deletions

View File

@ -533,7 +533,8 @@ public class ToParentBlockJoinQuery extends Query {
}
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);
wrappedCollector.endBatch();

View File

@ -435,7 +435,12 @@ public class TestBlockJoinBulkScorer extends LuceneTestCase {
ScorerSupplier ss = weight.scorerSupplier(searcher.getIndexReader().leaves().get(0));
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));
ss.setTopLevelScoringClause();
assertScores(reader.maxDoc(), ss.bulkScorer(), scoreMode, Math.nextUp(0f), expectedScores);
assertScores(
reader.maxDoc(), ss.bulkScorer(), scoreMode, Math.nextUp(0f), expectedScores);
}
}
}