Introduce bucket_sort_with_distinct function

This commit is contained in:
Clément Renault
2019-12-11 17:36:53 +01:00
parent 248ccfc0d8
commit 86ee0cbd6e
5 changed files with 272 additions and 329 deletions

View File

@ -44,7 +44,7 @@ impl<'a, 'tag> RawDocument<'a, 'tag> {
let pla = &postings_lists[a.postings_list];
let plb = &postings_lists[b.postings_list];
let mut iter = itertools::merge_join_by(pla.iter(), plb.iter(), |a, b| {
let iter = itertools::merge_join_by(pla.iter(), plb.iter(), |a, b| {
a.attribute.cmp(&b.attribute).then((a.word_index + 1).cmp(&b.word_index))
});