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();