diff --git a/quickpeep_index/src/backend/tantivy.rs b/quickpeep_index/src/backend/tantivy.rs index cc19dff..a6450c9 100644 --- a/quickpeep_index/src/backend/tantivy.rs +++ b/quickpeep_index/src/backend/tantivy.rs @@ -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(()) } }