mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
Merge pull request #248 from meilisearch/fix-highlight-too-long
Correctly highlight when query string is too long
This commit is contained in:
commit
dbe5363672
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ fn fetch_raw_documents(
|
|||
let is_exact = *is_exact && distance == 0 && input.len() == *query_len;
|
||||
|
||||
let covered_area = if query.len() > input.len() {
|
||||
query.len()
|
||||
input.len()
|
||||
} else {
|
||||
prefix_damerau_levenshtein(query.as_bytes(), input).1
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue