fix bug in exact search

This commit is contained in:
ad hoc 2022-03-30 16:07:59 +02:00
parent 56b4f5dce2
commit 6b2c2509b2
No known key found for this signature in database
GPG key ID: 4F00A782990CC643
3 changed files with 26 additions and 12 deletions

View file

@ -970,6 +970,7 @@ impl Index {
.get::<_, Str, SerdeBincode<Vec<&str>>>(txn, main_key::EXACT_ATTRIBUTES)?
.unwrap_or_default())
}
pub fn exact_attributes_ids(&self, txn: &RoTxn) -> Result<HashSet<FieldId>> {
let attrs = self.exact_attributes(txn)?;
let fid_map = self.fields_ids_map(txn)?;