From d4594306d3f1188caee2680ca970e745609fd3bb Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Tue, 19 Sep 2023 14:20:57 +0200 Subject: [PATCH] Fix fid_word_docids --- milli/src/update/index_documents/extract/extract_word_docids.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/update/index_documents/extract/extract_word_docids.rs b/milli/src/update/index_documents/extract/extract_word_docids.rs index 1860f5fe0..ccd8251e1 100644 --- a/milli/src/update/index_documents/extract/extract_word_docids.rs +++ b/milli/src/update/index_documents/extract/extract_word_docids.rs @@ -152,7 +152,7 @@ fn words_into_sorters( key_buffer.extend_from_slice(&word_bytes); key_buffer.push(0); key_buffer.extend_from_slice(&fid.to_be_bytes()); - word_fid_docids_sorter.insert(word_bytes, &value_buffer)?; + word_fid_docids_sorter.insert(&key_buffer, &value_buffer)?; } exact_words.clear();