From 6167a10e5e2792731cdc249fe24d8442fac9a6db Mon Sep 17 00:00:00 2001 From: mpostma Date: Mon, 15 Jun 2020 16:34:06 +0200 Subject: [PATCH] change ranking rule addition behavior --- meilisearch-core/src/update/settings_update.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/meilisearch-core/src/update/settings_update.rs b/meilisearch-core/src/update/settings_update.rs index 2717d7aa5..fbf266001 100644 --- a/meilisearch-core/src/update/settings_update.rs +++ b/meilisearch-core/src/update/settings_update.rs @@ -46,12 +46,6 @@ pub fn apply_settings_update( UpdateState::Update(v) => { let ranked_field: Vec<&str> = v.iter().filter_map(RankingRule::field).collect(); schema.update_ranked(&ranked_field)?; - for name in ranked_field { - if schema.accept_new_fields() { - schema.set_indexed(name.as_ref())?; - schema.set_displayed(name.as_ref())?; - } - } index.main.put_ranking_rules(writer, &v)?; must_reindex = true; },