Implementing an IS EMPTY filter

This commit is contained in:
Clément Renault
2023-03-14 18:08:12 +01:00
parent fa2ea4a379
commit ea016d97af
12 changed files with 156 additions and 37 deletions

View File

@ -223,6 +223,10 @@ impl<'a> Filter<'a> {
let is_null = index.null_faceted_documents_ids(rtxn, field_id)?;
return Ok(is_null);
}
Condition::Empty => {
let is_empty = index.empty_faceted_documents_ids(rtxn, field_id)?;
return Ok(is_empty);
}
Condition::Exists => {
let exist = index.exists_faceted_documents_ids(rtxn, field_id)?;
return Ok(exist);