Simplify facet update after removing Index::faceted_documents_ids

This commit is contained in:
Louis Dureuil 2023-10-23 15:19:33 +02:00
parent 14832cb324
commit 59f88c14b3
No known key found for this signature in database
6 changed files with 13 additions and 43 deletions

View file

@ -1,7 +1,6 @@
use roaring::RoaringBitmap;
use time::OffsetDateTime;
use crate::facet::FacetType;
use crate::{ExternalDocumentsIds, FieldDistribution, Index, Result};
pub struct ClearDocuments<'t, 'u, 'i> {
@ -51,7 +50,6 @@ impl<'t, 'u, 'i> ClearDocuments<'t, 'u, 'i> {
// We retrieve the number of documents ids that we are deleting.
let number_of_documents = self.index.number_of_documents(self.wtxn)?;
let faceted_fields = self.index.faceted_fields_ids(self.wtxn)?;
// We clean some of the main engine datastructures.
self.index.put_words_fst(self.wtxn, &fst::Set::default())?;