mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +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;
|
continue;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if !schema.get_displayed_name().contains(attribute.as_str()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if let Some(pos) = matches_result.get_mut(&attribute) {
|
if let Some(pos) = matches_result.get_mut(&attribute) {
|
||||||
pos.push(MatchPosition {
|
pos.push(MatchPosition {
|
||||||
start: m.char_index as usize,
|
start: m.char_index as usize,
|
||||||
|
Loading…
Reference in New Issue
Block a user