Introduce the stop words deletion update type

This commit is contained in:
Clément Renault 2019-10-29 15:43:26 +01:00
parent 776673ebae
commit a226fd23c3
4 changed files with 144 additions and 1 deletions

View file

@ -195,6 +195,14 @@ impl Index {
)
}
pub fn stop_words_deletion(&self) -> update::StopWordsDeletion {
update::StopWordsDeletion::new(
self.updates,
self.updates_results,
self.updates_notifier.clone(),
)
}
pub fn current_update_id(&self, reader: &heed::RoTxn) -> MResult<Option<u64>> {
match self.updates.last_update_id(reader)? {
Some((id, _)) => Ok(Some(id)),