diff --git a/milli/src/search/facet/facet_distribution.rs b/milli/src/search/facet/facet_distribution.rs index 2208ee636..ddbcb2b68 100644 --- a/milli/src/search/facet/facet_distribution.rs +++ b/milli/src/search/facet/facet_distribution.rs @@ -243,9 +243,7 @@ impl<'a> FacetDistribution<'a> { for (fid, name) in fields_ids_map.iter() { if crate::is_faceted(name, &fields) { let values = self.facet_values(fid)?; - if !values.is_empty() { - distribution.insert(name.to_string(), values); - } + distribution.insert(name.to_string(), values); } }