From a2bff68c1a16e780e572d2e0aa3b304abd6c47c2 Mon Sep 17 00:00:00 2001 From: tamo Date: Wed, 7 Apr 2021 11:05:10 +0200 Subject: [PATCH] remove the optional words for the typo criterion --- milli/benches/typo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/benches/typo.rs b/milli/benches/typo.rs index 1bbe1aecb..184f1e5df 100644 --- a/milli/benches/typo.rs +++ b/milli/benches/typo.rs @@ -28,7 +28,7 @@ fn bench_typo(c: &mut criterion::Criterion) { group.bench_with_input(BenchmarkId::from_parameter(query), &query, |b, &query| { b.iter(|| { let rtxn = index.read_txn().unwrap(); - let _documents_ids = index.search(&rtxn).query(*query).execute().unwrap(); + let _documents_ids = index.search(&rtxn).query(*query).optional_words(false).execute().unwrap(); }); }); }