From 04694071fe500cbff6672dc662da515d68aebedc Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Thu, 27 Jul 2023 14:12:23 +0200 Subject: [PATCH] Fix the synonyms settings display --- meilisearch-types/src/settings.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/meilisearch-types/src/settings.rs b/meilisearch-types/src/settings.rs index 5778d3703..7bef64d4b 100644 --- a/meilisearch-types/src/settings.rs +++ b/meilisearch-types/src/settings.rs @@ -509,13 +509,7 @@ pub fn settings( let distinct_field = index.distinct_field(rtxn)?.map(String::from); - // in milli each word in the synonyms map were split on their separator. Since we lost - // this information we are going to put space between words. - let synonyms = index - .synonyms(rtxn)? - .iter() - .map(|(key, values)| (key.join(" "), values.iter().map(|value| value.join(" ")).collect())) - .collect(); + let synonyms = index.user_defined_synonyms(rtxn)?; let min_typo_word_len = MinWordSizeTyposSetting { one_typo: Setting::Set(index.min_word_len_one_typo(rtxn)?),