Support flush() for Tantivy
This commit is contained in:
parent
139fe380bc
commit
7fa302b2c2
|
@ -105,6 +105,9 @@ impl Backend for TantivyBackend {
|
|||
}
|
||||
|
||||
fn flush(&mut self) -> anyhow::Result<()> {
|
||||
todo!()
|
||||
if let Some(index_writer) = self.index_writer.as_mut() {
|
||||
index_writer.commit()?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue