diff --git a/milli/src/search/query_tree.rs b/milli/src/search/query_tree.rs
index 5437199e1..6db2ce7a7 100644
--- a/milli/src/search/query_tree.rs
+++ b/milli/src/search/query_tree.rs
@@ -155,6 +155,8 @@ trait Context {
None => Ok(None),
}
}
+ /// Returns the minimum word len for 1 and 2 typos.
+ fn min_word_len_for_typo(&self) -> heed::Result<(u8, u8)>;
}
/// The query tree builder is the interface to build a query tree.
@@ -178,6 +180,12 @@ impl<'a> Context for QueryTreeBuilder<'a> {
fn word_documents_count(&self, word: &str) -> heed::Result