Fix fid_word_docids extraction

This commit is contained in:
ManyTheFish 2024-09-12 11:08:18 +02:00
parent 0d868f36d7
commit eb9a20ff0b

View File

@ -302,7 +302,7 @@ impl WordDocidsCachedSorters {
buffer.extend_from_slice(word.as_bytes());
buffer.push(0);
buffer.extend_from_slice(&position.to_be_bytes());
self.word_fid_docids.insert_add_u32(key, docid)?;
self.word_fid_docids.insert_add_u32(buffer, docid)?;
buffer.clear();
buffer.extend_from_slice(word.as_bytes());
@ -343,7 +343,7 @@ impl WordDocidsCachedSorters {
buffer.extend_from_slice(word.as_bytes());
buffer.push(0);
buffer.extend_from_slice(&position.to_be_bytes());
self.word_fid_docids.insert_del_u32(key, docid)?;
self.word_fid_docids.insert_del_u32(buffer, docid)?;
buffer.clear();
buffer.extend_from_slice(word.as_bytes());