mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 13:10:06 +01:00
fix ignored displayed attributes
This commit is contained in:
parent
7a737d2bd3
commit
d9a29cae60
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user