Update milli/src/update/facet/mod.rs

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Many the fish 2024-02-13 14:22:10 +01:00 committed by GitHub
parent 39c83cb3d9
commit 55de96f74e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}