mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	Update milli/src/search/criteria/proximity.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
		| @@ -176,8 +176,8 @@ fn resolve_candidates<'t>( | ||||
|         let result = match query_tree { | ||||
|             And(ops) => mdfs(ctx, ops, proximity, cache, wdcache)?, | ||||
|             Phrase(words) => if proximity == 0 { | ||||
|                 let most_left = words.first().map(|w| Query {prefix: false, kind: QueryKind::exact(w.clone())}); | ||||
|                 let most_right = words.last().map(|w| Query {prefix: false, kind: QueryKind::exact(w.clone())}); | ||||
|                 let most_left = words.first().map(|w| Query { prefix: false, kind: QueryKind::exact(w.clone()) }); | ||||
|                 let most_right = words.last().map(|w| Query { prefix: false, kind: QueryKind::exact(w.clone()) }); | ||||
|                 let mut candidates = None; | ||||
|                 for slice in words.windows(2) { | ||||
|                     let (left, right) = (&slice[0], &slice[1]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user