diff --git a/plume-cli/src/search.rs b/plume-cli/src/search.rs index 023522e..4eadd8e 100644 --- a/plume-cli/src/search.rs +++ b/plume-cli/src/search.rs @@ -104,7 +104,8 @@ fn refill<'a>(args: &ArgMatches<'a>, conn: &Connection, searcher: Option(args: &ArgMatches<'a>) { let path = args.value_of("path").unwrap_or("."); - let path = Path::new(path).join("search_index/.tantivy-indexer.lock"); - - remove_file(path).unwrap(); + let meta = Path::new(path).join("search_index/.tantivy-meta.lock"); + remove_file(meta).unwrap(); + let writer = Path::new(path).join("search_index/.tantivy-writer.lock"); + remove_file(writer).unwrap(); }