Fix the benchmarks to work with optional filters

This commit is contained in:
Clément Renault 2021-12-09 12:14:16 +01:00
parent 1c6c89f345
commit 94011bb9a8
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -117,7 +117,7 @@ pub fn run_benches(c: &mut criterion::Criterion, confs: &[Conf]) {
let mut search = index.search(&rtxn);
search.query(query).optional_words(conf.optional_words);
if let Some(filter) = conf.filter {
let filter = Filter::from_str(filter).unwrap();
let filter = Filter::from_str(filter).unwrap().unwrap();
search.filter(filter);
}
if let Some(sort) = &conf.sort {