mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-27 15:10:05 +01:00
do not show matches on undesired fields
This commit is contained in:
parent
585bba43a0
commit
faf0dd2f44
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user