mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 12:54:26 +01: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 =
|
||||
FacetGroupKey { field_id, level: 0, left_bound: facet.as_str() };
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user