diff --git a/milli/src/search/query_tree.rs b/milli/src/search/query_tree.rs index 080f89080..034b9123b 100755 --- a/milli/src/search/query_tree.rs +++ b/milli/src/search/query_tree.rs @@ -203,7 +203,7 @@ impl<'a> Context for QueryTreeBuilder<'a> { right_word: &str, proximity: u8, ) -> heed::Result> { - let key = (left_word, right_word, proximity); + let key = (proximity, left_word, right_word); self.index .word_pair_proximity_docids .remap_data_type::()