From ed7fd855afc7fc6854393e34ef697d8461e37cfe Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 11 Oct 2021 14:26:36 +0200 Subject: [PATCH] fix the wiki indexing benchmark --- benchmarks/benches/indexing.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmarks/benches/indexing.rs b/benchmarks/benches/indexing.rs index 66ecc7154..e4657d5b6 100644 --- a/benchmarks/benches/indexing.rs +++ b/benchmarks/benches/indexing.rs @@ -197,7 +197,8 @@ fn indexing_wiki(c: &mut Criterion) { move |index| { let update_builder = UpdateBuilder::new(0); let mut wtxn = index.write_txn().unwrap(); - let builder = update_builder.index_documents(&mut wtxn, &index); + let mut builder = update_builder.index_documents(&mut wtxn, &index); + builder.enable_autogenerate_docids(); let documents = utils::documents_from(datasets_paths::SMOL_WIKI_ARTICLES, "csv"); builder.execute(documents, |_, _| ()).unwrap();