pub fn remove(&self, writer: &mut RwTxn<MainT>, facet_map: HashMap<FacetKey, Vec<DocumentId>>) -> ZResult<()> {
        for (key, document_ids) in facet_map {
            if let Some(old) = self.facets.get(writer, &key)? {
                let to_remove = SetBuf::from_dirty(document_ids);
                let new = sdset::duo::OpBuilder::new(old.as_ref(), to_remove.as_set()).difference().into_set_buf();
                self.facets.put(writer, &key, new.as_set())?;
            }
        }
        Ok(())
    }
/// updates the facets  store, revmoving the documents from the facets provided in the
/// `facet_map` argument
updates the facets  store, revmoving the documents from the facets provided in the
`facet_map` argument
updates the facets store revmoving the documents from the facets provided in the ` facet_map ` argument
pub fn remove(&self, writer: &mut RwTxn<MainT>, facet_map: HashMap<FacetKey, Vec<DocumentId>>) -> ZResult<()> {
        for (key, document_ids) in facet_map {
            if let Some(old) = self.facets.get(writer, &key)? {
                let to_remove = SetBuf::from_dirty(document_ids);
                let new = sdset::duo::OpBuilder::new(old.as_ref(), to_remove.as_set()).difference().into_set_buf();
                self.facets.put(writer, &key, new.as_set())?;
            }
        }
        Ok(())
    }
pub fn remove ( & self , writer : & mut RwTxn < MainT > , facet_map : HashMap < FacetKey , Vec < DocumentId > > ) -> ZResult < ( ) > { for ( key , document_ids ) in facet_map { if let Some ( old ) = self . facets . get ( writer , & key ) ? { let to_remove = SetBuf :: from_dirty ( document_ids ) ; let new = sdset :: duo :: OpBuilder :: new ( old . as_ref ( ) , to_remove . as_set ( ) ) . difference ( ) . into_set_buf ( ) ; self . facets . put ( writer , & key , new . as_set ( ) ) ? ; } } Ok ( ( ) ) }
updates the facets  store, revmoving the documents from the facets provided in the
`facet_map` argument
updates the facets store revmoving the documents from the facets provided in the ` facet_map ` argument
&self
writer
&mut RwTxn<MainT>
facet_map
HashMap<FacetKey, Vec<DocumentId>>
&self
writer
&mut RwTxn<MainT>
facet_map
HashMap<FacetKey, Vec<DocumentId>>