diff --git a/crates/filter-parser/src/lib.rs b/crates/filter-parser/src/lib.rs index b64477170..02f338673 100644 --- a/crates/filter-parser/src/lib.rs +++ b/crates/filter-parser/src/lib.rs @@ -614,8 +614,6 @@ impl std::fmt::Display for Token<'_> { #[cfg(test)] pub mod tests { - use std::fmt::format; - use FilterCondition as Fc; use super::*; diff --git a/crates/milli/src/search/facet/filter_vector.rs b/crates/milli/src/search/facet/filter_vector.rs index a0dc52bac..0b9cad702 100644 --- a/crates/milli/src/search/facet/filter_vector.rs +++ b/crates/milli/src/search/facet/filter_vector.rs @@ -212,7 +212,7 @@ impl<'a> VectorFilter<'a> { embedder_config.config.quantized(), ); - let mut new_docids = if let Some(fragment_token) = &self.fragment_token { + docids |= if let Some(fragment_token) = &self.fragment_token { let fragment_name = fragment_token.value(); let Some(fragment_config) = embedder_config .fragments @@ -261,8 +261,6 @@ impl<'a> VectorFilter<'a> { stats.documents } }; - - docids |= new_docids; } if let Some(universe) = universe {