mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Don't mark [""] as empty facet
This commit is contained in:
		
				
					committed by
					
						
						Clément Renault
					
				
			
			
				
	
			
			
			
						parent
						
							ca779c21f9
						
					
				
				
					commit
					f893b5153e
				
			@@ -251,7 +251,7 @@ impl FacetedDocidsExtractor {
 | 
			
		||||
                buffer.extend_from_slice(&fid.to_be_bytes());
 | 
			
		||||
                cache_fn(cached_sorter, &buffer, docid)
 | 
			
		||||
            }
 | 
			
		||||
            Value::String(_) => {
 | 
			
		||||
            Value::String(_) if depth == perm_json_p::Depth::OnBaseKey => {
 | 
			
		||||
                buffer.clear();
 | 
			
		||||
                buffer.push(FacetKind::Empty as u8);
 | 
			
		||||
                buffer.extend_from_slice(&fid.to_be_bytes());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user