diff --git a/milli/src/search/criteria/mod.rs b/milli/src/search/criteria/mod.rs
index 4cc4512d7..36569906e 100644
--- a/milli/src/search/criteria/mod.rs
+++ b/milli/src/search/criteria/mod.rs
@@ -1,8 +1,11 @@
+use std::borrow::Cow;
+
use crate::Index;
+use crate::search::word_typos;
use roaring::RoaringBitmap;
-use super::query_tree::Operation;
+use super::query_tree::{Operation, Query, QueryKind};
pub mod typo;
@@ -32,3 +35,120 @@ impl Default for Candidates {
Self::Forbidden(RoaringBitmap::new())
}
}
+pub trait Context {
+ fn query_docids(&self, query: &Query) -> anyhow::Result