Update meilisearch-http/src/index/mod.rs

Co-authored-by: marin <postma.marin@protonmail.com>
This commit is contained in:
Clémentine Urquizar 2021-07-28 12:08:19 +02:00 committed by GitHub
parent e5dabf265a
commit 9bdd040dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@ impl Index {
txn: &heed::RoTxn,
attributes_to_retrieve: &Option<Vec<S>>,
fields_ids_map: &milli::FieldsIdsMap,
) -> Result<Vec<u16>> {
) -> Result<Vec<FieldId>> {
let mut displayed_fields_ids = match self.displayed_fields_ids(&txn)? {
Some(ids) => ids.into_iter().collect::<Vec<_>>(),
None => fields_ids_map.iter().map(|(id, _)| id).collect(),