mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Return facets even when there is no values associated to it
This commit is contained in:
parent
2fdf520271
commit
7d1c2d97bf
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user