Fix fid_word_docids

This commit is contained in:
ManyTheFish 2023-09-19 14:20:57 +02:00
parent 93d0680903
commit d4594306d3

View File

@ -152,7 +152,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();