From c35343d36143be3d374a92b06b1b697d34fbe906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halvor=20B=C3=B8?= Date: Mon, 5 Jul 2021 23:30:34 +0100 Subject: [PATCH] Added todo --- src/query/phrase_query/phrase_scorer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/phrase_query/phrase_scorer.rs b/src/query/phrase_query/phrase_scorer.rs index eac6c6112..c61a1432e 100644 --- a/src/query/phrase_query/phrase_scorer.rs +++ b/src/query/phrase_query/phrase_scorer.rs @@ -109,6 +109,7 @@ fn intersection(left: &mut [u32], right: &[u32]) -> usize { let mut count = 0; let left_len = left.len(); let right_len = right.len(); + // TODO: Modify this logic to add fuzziness to the logic. while left_i < left_len && right_i < right_len { let left_val = left[left_i]; let right_val = right[right_i]; @@ -170,7 +171,7 @@ impl PhraseScorer { } fn phrase_match(&mut self) -> bool { - // Need to add support for slop in phrase_count and phrase_exists + // Need to add support for slop in phrase_count and phrase_exists. if self.scoring_enabled { let count = self.compute_phrase_count(); self.phrase_count = count;