mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Update milli/src/update/facet/mod.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
39c83cb3d9
commit
55de96f74e
@ -202,7 +202,7 @@ impl<'i> FacetsUpdate<'i> {
|
|||||||
let key =
|
let key =
|
||||||
FacetGroupKey { field_id, level: 0, left_bound: facet.as_str() };
|
FacetGroupKey { field_id, level: 0, left_bound: facet.as_str() };
|
||||||
// Check if the referenced value doesn't exist anymore before deleting it.
|
// Check if the referenced value doesn't exist anymore before deleting it.
|
||||||
if self.index.facet_id_string_docids.get(wtxn, &key)?.is_none() {
|
if self.index.facet_id_string_docids.get(wtxn, &key)?.remap_data::<DecodeIgnore>().is_none() {
|
||||||
set.insert(facet);
|
set.insert(facet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user