From 2d068bd45b61da527c1bf12a866b58ba5d895222 Mon Sep 17 00:00:00 2001 From: many Date: Wed, 17 Feb 2021 15:27:35 +0100 Subject: [PATCH] implement Context trait for criteria --- milli/src/search/criteria/typo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/milli/src/search/criteria/typo.rs b/milli/src/search/criteria/typo.rs index a9d3b5d96..659292619 100644 --- a/milli/src/search/criteria/typo.rs +++ b/milli/src/search/criteria/typo.rs @@ -181,6 +181,7 @@ fn alterate_query_tree( ops.iter_mut().try_for_each(|op| recurse(words_fst, op, number_typos, typo_cache)) }, Operation::Query(q) => { + // TODO may be optimized when number_typos == 0 if let QueryKind::Tolerant { typo, word } = &q.kind { // if no typo is allowed we don't call word_derivations function, // and directly create an Exact query