Fix fid_word_docids

This commit is contained in:
ManyTheFish 2023-09-19 14:20:57 +02:00 committed by Louis Dureuil
parent 748b333161
commit 8d77736a67
No known key found for this signature in database

View File

@ -156,7 +156,7 @@ fn words_into_sorters(
key_buffer.extend_from_slice(&word_bytes); key_buffer.extend_from_slice(&word_bytes);
key_buffer.push(0); key_buffer.push(0);
key_buffer.extend_from_slice(&fid.to_be_bytes()); 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(); exact_words.clear();