mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Make the engine support non-exact multi-words synonyms
This commit is contained in:
@ -65,7 +65,7 @@ fn highlights_from_raw_document<'a, 'tag, 'txn>(
|
||||
|
||||
for di in postings_list.iter() {
|
||||
let covered_area = match kind {
|
||||
Some(QueryKind::Exact(query)) | Some(QueryKind::Tolerant(query)) => {
|
||||
Some(QueryKind::NonTolerant(query)) | Some(QueryKind::Tolerant(query)) => {
|
||||
let len = if query.len() > input.len() {
|
||||
input.len()
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user