Issue 20 Searcher pool implemented using a channel.

Operational but not really ready for merge.
This commit is contained in:
Paul Masurel
2016-08-27 02:14:38 +09:00
parent 46e2b73ea5
commit 5e806c88ef
9 changed files with 181 additions and 45 deletions

View File

@@ -123,7 +123,7 @@ fn run(index_path: &Path) -> tantivy::Result<()> {
// Let's search our index. This starts
// by creating a searcher. There can be more
// than one searcher at a time.
let searcher = try!(index.searcher());
let searcher = index.searcher();
// The query parser can interpret human queries.
// Here, if the user does not specify which