Update meilisearch-core/src/update/settings_update.rs

Co-authored-by: marin <postma.marin@protonmail.com>
This commit is contained in:
Many 2021-01-13 13:17:19 +01:00 committed by GitHub
parent 06b2a587af
commit bc0d53e819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,10 +296,7 @@ pub fn apply_synonyms_update(
fn normalize<T: AsRef<[u8]>>(analyzer: &Analyzer<T>, text: &str) -> String {
analyzer.analyze(&text)
.tokens()
.fold(String::new(), |mut s, t| {
s.push_str(&t.word);
s
})
.fold(String::new(), |mut s, t| s + t.text())
}
let mut synonyms_builder = SetBuilder::memory();