diff --git a/milli/src/search/query_tree.rs b/milli/src/search/query_tree.rs
index f7367d826..fb5b5b87c 100644
--- a/milli/src/search/query_tree.rs
+++ b/milli/src/search/query_tree.rs
@@ -1,6 +1,7 @@
use std::collections::HashSet;
use std::{fmt, cmp, mem};
+use fst::Set;
use levenshtein_automata::{DFA, Distance};
use meilisearch_tokenizer::{TokenKind, tokenizer::TokenStream};
use roaring::RoaringBitmap;
@@ -154,6 +155,10 @@ impl fmt::Debug for Query {
trait Context {
fn word_docids(&self, word: &str) -> heed::Result