From 707279e7e82176f15a949a25ac73f5419529fb30 Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Sun, 15 Dec 2024 09:18:39 +0000 Subject: [PATCH] tidy --- .../lucene/search/join/ToParentBlockJoinQuery.java | 3 ++- .../lucene/search/join/TestBlockJoinBulkScorer.java | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lucene/join/src/java/org/apache/lucene/search/join/ToParentBlockJoinQuery.java b/lucene/join/src/java/org/apache/lucene/search/join/ToParentBlockJoinQuery.java index e68b8b42371..b457583db8e 100644 --- a/lucene/join/src/java/org/apache/lucene/search/join/ToParentBlockJoinQuery.java +++ b/lucene/join/src/java/org/apache/lucene/search/join/ToParentBlockJoinQuery.java @@ -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(); diff --git a/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoinBulkScorer.java b/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoinBulkScorer.java index 9b1a9ee2785..4695156b891 100644 --- a/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoinBulkScorer.java +++ b/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoinBulkScorer.java @@ -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); } } }