mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
Introduce a function to ignore useless paths
This commit is contained in:
@ -119,7 +119,7 @@ impl Index {
|
||||
|
||||
let mut documents = Vec::new();
|
||||
|
||||
for (proximity, mut positions) in BestProximity::new(positions) {
|
||||
for (proximity, mut positions) in BestProximity::new(positions, |_, _| true) {
|
||||
// TODO we must ignore positions paths that gives nothing
|
||||
if (proximity as usize) < words.len() - 1 {
|
||||
eprintln!("Skipping too short proximities of {}.", proximity);
|
||||
|
Reference in New Issue
Block a user