Make Searcher::open_or_create() accept path and tokenizers

This commit is contained in:
Kitaiti Makoto
2021-01-06 23:40:56 +09:00
parent 09d9164a1c
commit 996dc309f7
2 changed files with 12 additions and 10 deletions
+4 -1
View File
@@ -100,7 +100,10 @@ Then try to restart Plume.
}
let workpool = ScheduledThreadPool::with_name("worker {}", num_cpus::get());
// we want a fast exit here, so
let searcher = Arc::new(UnmanagedSearcher::open_or_recreate());
let searcher = Arc::new(UnmanagedSearcher::open_or_recreate(
&CONFIG.search_index,
&CONFIG.search_tokenizers,
));
let commiter = searcher.clone();
workpool.execute_with_fixed_delay(
Duration::from_secs(5),