mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	Don't add swapped word pairs to the word_pair_proximity_docids db
This commit is contained in:
		
				
					committed by
					
						 Loïc Lecrenier
						Loïc Lecrenier
					
				
			
			
				
	
			
			
			
						parent
						
							264a04922d
						
					
				
				
					commit
					a7de4f5b85
				
			| @@ -106,17 +106,6 @@ fn document_word_positions_into_sorter<'b>( | ||||
|                             *p = cmp::min(*p, prox); | ||||
|                         }) | ||||
|                         .or_insert(prox); | ||||
|  | ||||
|                     // We also compute the inverse proximity. | ||||
|                     let prox = prox + 1; | ||||
|                     if prox < MAX_DISTANCE { | ||||
|                         word_pair_proximity | ||||
|                             .entry((word.clone(), head.word.clone())) | ||||
|                             .and_modify(|p| { | ||||
|                                 *p = cmp::min(*p, prox); | ||||
|                             }) | ||||
|                             .or_insert(prox); | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user