diff --git a/meilisearch-http/src/helpers/meilisearch.rs b/meilisearch-http/src/helpers/meilisearch.rs index 74a8ed2df..563823423 100644 --- a/meilisearch-http/src/helpers/meilisearch.rs +++ b/meilisearch-http/src/helpers/meilisearch.rs @@ -404,6 +404,9 @@ fn calculate_matches( continue; } }; + if !schema.get_displayed_name().contains(attribute.as_str()) { + continue; + } if let Some(pos) = matches_result.get_mut(&attribute) { pos.push(MatchPosition { start: m.char_index as usize,