diff --git a/meilisearch-core/src/query_tree.rs b/meilisearch-core/src/query_tree.rs index e4965a656..319b997a0 100644 --- a/meilisearch-core/src/query_tree.rs +++ b/meilisearch-core/src/query_tree.rs @@ -531,7 +531,7 @@ pub fn traverse_query_tree<'o, 'txn>( let docids = SetBuf::new(docids).unwrap(); debug!("{:2$}docids construction took {:.02?}", "", before.elapsed(), depth * 2); - let matches = Cow::Owned(SetBuf::new(matches).unwrap()); + let matches = Cow::Owned(SetBuf::from_dirty(matches)); let key = PostingsKey { query, input: vec![], distance: 0, is_exact: true }; postings.insert(key, matches);