Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Dec 15, 2024
1 parent 4e40487 commit 707279e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,8 @@ public int score(LeafCollector collector, Bits acceptDocs, int min, int max)
}

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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,12 @@ public void testSetMinCompetitiveScoreWithScoreModeMax() throws IOException {

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));
}

{
Expand Down Expand Up @@ -504,7 +509,8 @@ public void testSetMinCompetitiveScoreWithScoreModeNone() throws IOException {

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);
}
}
}
Expand Down

0 comments on commit 707279e

Please sign in to comment.