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

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

View File

@ -314,7 +314,7 @@ fn add_highlight_to_formatted_options(
formatted_options: &mut BTreeMap<FieldId, FormatOptions>, formatted_options: &mut BTreeMap<FieldId, FormatOptions>,
attr_to_highlight: &HashSet<String>, attr_to_highlight: &HashSet<String>,
fields_ids_map: &FieldsIdsMap, fields_ids_map: &FieldsIdsMap,
displayed_ids: &BTreeSet<u16>, displayed_ids: &BTreeSet<FieldId>,
) { ) {
for attr in attr_to_highlight { for attr in attr_to_highlight {
let new_format = FormatOptions { let new_format = FormatOptions {