mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-25 11:35:05 +08:00
Fix fid_word_docids extraction
This commit is contained in:
parent
0d868f36d7
commit
eb9a20ff0b
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user