mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	remove the distance from the search, the computation of the distance will be made on meilisearch side
This commit is contained in:
		@@ -106,8 +106,8 @@ fn geo_point(
 | 
			
		||||
    point: [f64; 2],
 | 
			
		||||
) -> Box<dyn Iterator<Item = RoaringBitmap>> {
 | 
			
		||||
    let results = rtree
 | 
			
		||||
        .nearest_neighbor_iter_with_distance_2(&point)
 | 
			
		||||
        .filter_map(move |(point, _distance)| candidates.contains(point.data).then(|| point.data))
 | 
			
		||||
        .nearest_neighbor_iter(&point)
 | 
			
		||||
        .filter_map(move |point| candidates.contains(point.data).then(|| point.data))
 | 
			
		||||
        .map(|id| std::iter::once(id).collect::<RoaringBitmap>())
 | 
			
		||||
        .collect::<Vec<_>>();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user