From dda28d74156bc45e2895d9226ea00c64210edb10 Mon Sep 17 00:00:00 2001 From: ad hoc Date: Sat, 9 Apr 2022 14:30:00 +0200 Subject: [PATCH] exclude excluded canditates from search result candidates --- milli/src/search/mod.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/milli/src/search/mod.rs b/milli/src/search/mod.rs index d53bcafb7..dcb2e0803 100644 --- a/milli/src/search/mod.rs +++ b/milli/src/search/mod.rs @@ -243,9 +243,11 @@ impl<'a> Search<'a> { excluded_candidates = candidates.into_excluded(); } - dbg!(excluded_candidates.len()); - - Ok(SearchResult { matching_words, candidates: initial_candidates, documents_ids }) + Ok(SearchResult { + matching_words, + candidates: initial_candidates - excluded_candidates, + documents_ids, + }) } }