cache context's exact words

This commit is contained in:
ad hoc
2022-05-24 09:43:17 +02:00
parent 8993fec8a3
commit ac975cc747
2 changed files with 33 additions and 18 deletions

View File

@ -118,7 +118,7 @@ impl<'a> Search<'a> {
let before = Instant::now();
let (query_tree, primitive_query, matching_words) = match self.query.as_ref() {
Some(query) => {
let mut builder = QueryTreeBuilder::new(self.rtxn, self.index);
let mut builder = QueryTreeBuilder::new(self.rtxn, self.index)?;
builder.optional_words(self.optional_words);
builder.authorize_typos(self.is_typo_authorized()?);