Prefer returning None instead of the Empty Filter state

This commit is contained in:
Clément Renault
2021-12-09 11:13:12 +01:00
parent 80dcfd5c3e
commit ef59762d8e
4 changed files with 47 additions and 43 deletions

View File

@@ -681,7 +681,7 @@ mod tests {
builder.delete_external_id("1_4");
builder.execute().unwrap();
let filter = Filter::from_str("label = sign").unwrap();
let filter = Filter::from_str("label = sign").unwrap().unwrap();
let results = index.search(&wtxn).filter(filter).execute().unwrap();
assert!(results.documents_ids.is_empty());