From f546dce51c8933e94ed856b3891792bb583bbfe1 Mon Sep 17 00:00:00 2001 From: Pascal Seitz Date: Fri, 19 Sep 2025 19:34:16 +0200 Subject: [PATCH] fix build --- Cargo.toml | 2 +- src/query/boolean_query/boolean_weight.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1ad05d469..9019db026 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,7 +79,7 @@ rand = "0.8.5" maplit = "1.0.2" matches = "0.1.9" pretty_assertions = "1.2.1" -proptest = "1.0.0" +proptest = "1.7.0" test-log = "0.2.10" futures = "0.3.21" paste = "1.0.11" diff --git a/src/query/boolean_query/boolean_weight.rs b/src/query/boolean_query/boolean_weight.rs index 0a100f85b..e65a1f219 100644 --- a/src/query/boolean_query/boolean_weight.rs +++ b/src/query/boolean_query/boolean_weight.rs @@ -173,7 +173,11 @@ impl BooleanWeight { return Ok(SpecializedScorer::Other(Box::new(EmptyScorer))); } match self.minimum_number_should_match { - 0 => CombinationMethod::Optional(scorer_union(should_scorers, &score_combiner_fn)), + 0 => CombinationMethod::Optional(scorer_union( + should_scorers, + &score_combiner_fn, + num_docs, + )), 1 => { let scorer_union = scorer_union(should_scorers, &score_combiner_fn, num_docs); CombinationMethod::Required(scorer_union) @@ -228,7 +232,7 @@ impl BooleanWeight { } } (CombinationMethod::Required(should_scorer), Some(mut must_scorers)) => { - must_scorers.push(into_box_scorer(should_scorer, &score_combiner_fn)); + must_scorers.push(into_box_scorer(should_scorer, &score_combiner_fn, num_docs)); SpecializedScorer::Other(intersect_scorers(must_scorers, num_docs)) } (CombinationMethod::Ignored, None) => {