From 5c01e9bf7cdbcc221011bec721e6ae685ca83017 Mon Sep 17 00:00:00 2001 From: Tamo Date: Sat, 6 Nov 2021 16:03:49 +0100 Subject: [PATCH] fix the benchmarks --- benchmarks/benches/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/benches/utils.rs b/benchmarks/benches/utils.rs index 24f5d5343..00bd4e72a 100644 --- a/benchmarks/benches/utils.rs +++ b/benchmarks/benches/utils.rs @@ -9,7 +9,7 @@ use criterion::BenchmarkId; use heed::EnvOpenOptions; use milli::documents::DocumentBatchReader; use milli::update::{IndexDocumentsMethod, Settings, UpdateBuilder}; -use milli::{FilterCondition, Index}; +use milli::{Filter, Index}; use serde_json::{Map, Value}; pub struct Conf<'a> { @@ -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 = FilterCondition::from_str(&rtxn, &index, filter).unwrap(); + let filter = Filter::from_str(filter).unwrap(); search.filter(filter); } if let Some(sort) = &conf.sort {