mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 21:20:24 +01:00
Merge pull request #567 from meilisearch/fix-not-dedup-matches
Construct a Set using the from_dirty method
This commit is contained in:
commit
3b25bd71ab
@ -531,7 +531,7 @@ pub fn traverse_query_tree<'o, 'txn>(
|
|||||||
let docids = SetBuf::new(docids).unwrap();
|
let docids = SetBuf::new(docids).unwrap();
|
||||||
debug!("{:2$}docids construction took {:.02?}", "", before.elapsed(), depth * 2);
|
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 };
|
let key = PostingsKey { query, input: vec![], distance: 0, is_exact: true };
|
||||||
postings.insert(key, matches);
|
postings.insert(key, matches);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user