From bc0d53e819407311b4e1d8f7d67cd744e5128bd6 Mon Sep 17 00:00:00 2001 From: Many Date: Wed, 13 Jan 2021 13:17:19 +0100 Subject: [PATCH] Update meilisearch-core/src/update/settings_update.rs Co-authored-by: marin --- meilisearch-core/src/update/settings_update.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meilisearch-core/src/update/settings_update.rs b/meilisearch-core/src/update/settings_update.rs index 205ef216a..7bb84c866 100644 --- a/meilisearch-core/src/update/settings_update.rs +++ b/meilisearch-core/src/update/settings_update.rs @@ -296,10 +296,7 @@ pub fn apply_synonyms_update( fn normalize>(analyzer: &Analyzer, 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();