This commit is contained in:
Claus Matzinger
2017-03-13 00:24:54 -04:00
parent 37e71f7c63
commit 292dd6dcb6

View File

@@ -73,10 +73,8 @@ fn run_example(index_path: &Path) -> tantivy::Result<()> {
// This single `IndexWriter` is already
// multithreaded.
//
// Here we use a buffer of 50MB. Using a bigger
// Here we use a buffer of 50MB per thread. Using a bigger
// heap for the indexer can increase its throughput.
// This buffer will be split between the indexing
// threads.
let mut index_writer = try!(index.writer(50_000_000));
// Let's index our documents!