mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	add ranking_rules marker before sort_position
This commit is contained in:
		
				
					committed by
					
						
						marin postma
					
				
			
			
				
	
			
			
			
						parent
						
							efd0ea9e1e
						
					
				
				
					commit
					68fe93b7db
				
			@@ -192,7 +192,9 @@ make_setting_route!(
 | 
			
		||||
        analytics.publish(
 | 
			
		||||
            "RankingRules Updated".to_string(),
 | 
			
		||||
            json!({
 | 
			
		||||
                "sort_position": setting.as_ref().map(|sort| sort.iter().position(|s| s == "sort")),
 | 
			
		||||
                "ranking_rules": {
 | 
			
		||||
                    "sort_position": setting.as_ref().map(|sort| sort.iter().position(|s| s == "sort")),
 | 
			
		||||
                }
 | 
			
		||||
            }),
 | 
			
		||||
            Some(req),
 | 
			
		||||
        );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user