Fix the benchmarks compilation

This commit is contained in:
Kerollmops 2020-09-28 13:39:17 +02:00
parent d8354f6f02
commit 51c237f9d8
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -28,7 +28,7 @@ fn bench_search(c: &mut criterion::Criterion) {
group.bench_with_input(BenchmarkId::from_parameter(query), &query, |b, &query| {
b.iter(|| {
let rtxn = env.read_txn().unwrap();
let _documents_ids = index.search(&rtxn, query).unwrap();
let _documents_ids = index.search(&rtxn).query(*query).execute().unwrap();
});
});
}