forward the degraded parameter to the hybrid search

This commit is contained in:
Tamo 2024-03-19 15:11:21 +01:00
parent 0ae39644f7
commit 7b9e0d2944

View File

@ -10,6 +10,7 @@ struct ScoreWithRatioResult {
matching_words: MatchingWords, matching_words: MatchingWords,
candidates: RoaringBitmap, candidates: RoaringBitmap,
document_scores: Vec<(u32, ScoreWithRatio)>, document_scores: Vec<(u32, ScoreWithRatio)>,
degraded: bool,
} }
type ScoreWithRatio = (Vec<ScoreDetails>, f32); type ScoreWithRatio = (Vec<ScoreDetails>, f32);
@ -72,6 +73,7 @@ impl ScoreWithRatioResult {
matching_words: results.matching_words, matching_words: results.matching_words,
candidates: results.candidates, candidates: results.candidates,
document_scores, document_scores,
degraded: results.degraded,
} }
} }
@ -106,7 +108,7 @@ impl ScoreWithRatioResult {
candidates: left.candidates | right.candidates, candidates: left.candidates | right.candidates,
documents_ids, documents_ids,
document_scores, document_scores,
degraded: false, degraded: left.degraded | right.degraded,
} }
} }
} }