do not show matches on undesired fields

This commit is contained in:
qdequele 2020-01-27 18:25:42 +01:00
parent 585bba43a0
commit faf0dd2f44
No known key found for this signature in database
GPG Key ID: B3F0A000EBF11745

View File

@ -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,