Fix position in insertions

This commit is contained in:
ManyTheFish 2024-09-30 11:46:32 +02:00
parent 2b51a63418
commit 5b552caf42

View File

@ -125,6 +125,7 @@ impl WordDocidsCachedSorters {
buffer.extend_from_slice(&field_id.to_be_bytes()); buffer.extend_from_slice(&field_id.to_be_bytes());
self.word_fid_docids.insert_add_u32(buffer, docid)?; self.word_fid_docids.insert_add_u32(buffer, docid)?;
let position = bucketed_position(position);
buffer.clear(); buffer.clear();
buffer.extend_from_slice(word.as_bytes()); buffer.extend_from_slice(word.as_bytes());
buffer.push(0); buffer.push(0);