mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
Fix node skipping by computing the accumulated proximity
This commit is contained in:
@ -121,7 +121,10 @@ impl Index {
|
||||
|
||||
for (proximity, mut positions) in BestProximity::new(positions) {
|
||||
// TODO we must ignore positions paths that gives nothing
|
||||
if words.len() > 1 && proximity == 0 { continue }
|
||||
if (proximity as usize) < words.len() - 1 {
|
||||
eprintln!("Skipping too short proximities of {}.", proximity);
|
||||
continue
|
||||
}
|
||||
|
||||
positions.sort_unstable();
|
||||
|
||||
|
Reference in New Issue
Block a user