mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-27 07:14:26 +01:00
Update milli/src/search/matching_words.rs
Co-authored-by: Clément Renault <renault.cle@gmail.com>
This commit is contained in:
parent
be75e738b1
commit
6044b80362
@ -165,7 +165,6 @@ fn bytes_to_highlight(source: &str, target: &str) -> usize {
|
|||||||
|
|
||||||
let mut minimum = 2;
|
let mut minimum = 2;
|
||||||
for x in 0..=n {
|
for x in 0..=n {
|
||||||
// let dist = matrix[(x + 1, m + 1)];
|
|
||||||
let min_dist = (0..=m).map(|y| matrix[(x + 1, y + 1)]).min().unwrap();
|
let min_dist = (0..=m).map(|y| matrix[(x + 1, y + 1)]).min().unwrap();
|
||||||
if min_dist <= 2 {
|
if min_dist <= 2 {
|
||||||
minimum = x;
|
minimum = x;
|
||||||
|
Loading…
Reference in New Issue
Block a user