Refactor word prefix pair proximity indexation

This commit is contained in:
Loïc Lecrenier
2022-07-06 18:20:15 +02:00
parent f55034ed54
commit 306593144d
7 changed files with 649 additions and 3 deletions

View File

@ -1153,6 +1153,7 @@ fn word_pair_proximities_docids(
prefix.extend_from_slice(word1.as_bytes());
prefix.push(0);
prefix.extend_from_slice(word2.as_bytes());
prefix.push(0);
let db = index.word_pair_proximity_docids.as_polymorph();
let iter = db.prefix_iter::<_, ByteSlice, RoaringBitmapCodec>(rtxn, &prefix)?;