This commit is contained in:
Rob Ede 2022-02-28 13:43:22 +00:00 committed by ad hoc
parent 3b2e467ca6
commit 15150db957
No known key found for this signature in database
GPG key ID: 4F00A782990CC643
8 changed files with 13 additions and 16 deletions

View file

@ -152,7 +152,7 @@ impl Index {
Ok(stop_words.stream().into_strs()?.into_iter().collect())
})
.transpose()?
.unwrap_or_else(BTreeSet::new);
.unwrap_or_default();
let distinct_field = self.distinct_field(txn)?.map(String::from);
// in milli each word in the synonyms map were split on their separator. Since we lost