mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-04 20:18:55 +01:00
Prefer using the word_docids db to create the words-fst
This commit is contained in:
parent
4ca9472e02
commit
c2405bcae2
@ -260,8 +260,7 @@ impl Store {
|
||||
let mut iter = self.sorter.into_iter()?;
|
||||
while let Some(result) = iter.next() {
|
||||
let (key, val) = result?;
|
||||
if let Some((&1, bytes)) = key.split_first() {
|
||||
let (word, _docid) = StrBEU32Codec::bytes_decode(bytes).unwrap();
|
||||
if let Some((&WORD_DOCIDS_BYTE, word)) = key.split_first() {
|
||||
// This is a lexicographically ordered word position
|
||||
// we use the key to construct the words fst.
|
||||
builder.insert(word)?;
|
||||
|
Loading…
Reference in New Issue
Block a user