fix ignored displayed attributes

This commit is contained in:
Marin Postma 2021-04-20 16:21:30 +02:00
parent 7a737d2bd3
commit d9a29cae60
No known key found for this signature in database
GPG Key ID: D5241F0C0C865F30

View File

@ -88,7 +88,9 @@ impl Index {
let mut documents = Vec::new();
let fields_ids_map = self.fields_ids_map(&rtxn).unwrap();
let displayed_ids: HashSet<FieldId> = fields_ids_map.iter().map(|(id, _)| id).collect();
let displayed_ids: HashSet<FieldId> = self.displayed_fields_ids(&rtxn)?
.map(|fields| fields.into_iter().collect::<HashSet<_>>())
.unwrap_or_else(|| fields_ids_map.iter().map(|(id, _)| id).collect());
let fids = |attrs: &HashSet<String>| {
let mut ids = HashSet::new();