fix build

This commit is contained in:
Pascal Seitz
2025-09-19 19:34:16 +02:00
committed by Pascal Seitz
parent 8a4d3b5fed
commit f546dce51c
2 changed files with 7 additions and 3 deletions

View File

@@ -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"

View File

@@ -173,7 +173,11 @@ impl<TScoreCombiner: ScoreCombiner> BooleanWeight<TScoreCombiner> {
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<TScoreCombiner: ScoreCombiner> BooleanWeight<TScoreCombiner> {
}
}
(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) => {