mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-11 14:16:31 +00:00
Replace the NotEqual operand by a Not(Equal) system
This commit is contained in:
@@ -295,12 +295,6 @@ impl<'a> Filter<'a> {
|
||||
};
|
||||
return Ok(string_docids | number_docids);
|
||||
}
|
||||
Condition::NotEqual(val) => {
|
||||
let operator = Condition::Equal(val.clone());
|
||||
let docids = Self::evaluate_operator(rtxn, index, field_id, &operator)?;
|
||||
let all_ids = index.documents_ids(rtxn)?;
|
||||
return Ok(all_ids - docids);
|
||||
}
|
||||
Condition::Contains(val) => {
|
||||
let value = crate::normalize_facet(val.value());
|
||||
let finder = Finder::new(&value);
|
||||
|
Reference in New Issue
Block a user