Support flush() for Tantivy

This commit is contained in:
Olivier 'reivilibre' 2022-03-24 22:57:55 +00:00
parent 139fe380bc
commit 7fa302b2c2
1 changed files with 4 additions and 1 deletions

View File

@ -105,6 +105,9 @@ impl Backend for TantivyBackend {
} }
fn flush(&mut self) -> anyhow::Result<()> { fn flush(&mut self) -> anyhow::Result<()> {
todo!() if let Some(index_writer) = self.index_writer.as_mut() {
index_writer.commit()?;
}
Ok(())
} }
} }