mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-27 07:14:26 +01:00
Merge #385
385: Fix the wiki indexing benchmark r=ManyTheFish a=irevoire Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
commit
8f6b6c9042
@ -197,7 +197,8 @@ fn indexing_wiki(c: &mut Criterion) {
|
|||||||
move |index| {
|
move |index| {
|
||||||
let update_builder = UpdateBuilder::new(0);
|
let update_builder = UpdateBuilder::new(0);
|
||||||
let mut wtxn = index.write_txn().unwrap();
|
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");
|
let documents = utils::documents_from(datasets_paths::SMOL_WIKI_ARTICLES, "csv");
|
||||||
builder.execute(documents, |_, _| ()).unwrap();
|
builder.execute(documents, |_, _| ()).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user