From eb9a20ff0b9cd3f6c49e89bf4541909fde0a6299 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Thu, 12 Sep 2024 11:08:18 +0200 Subject: [PATCH] Fix fid_word_docids extraction --- .../src/update/new/extract/searchable/extract_word_docids.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/update/new/extract/searchable/extract_word_docids.rs b/milli/src/update/new/extract/searchable/extract_word_docids.rs index f454269f6..652964b11 100644 --- a/milli/src/update/new/extract/searchable/extract_word_docids.rs +++ b/milli/src/update/new/extract/searchable/extract_word_docids.rs @@ -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());