From 68fe93b7dbd404c115574d6baf776b796093ee11 Mon Sep 17 00:00:00 2001 From: Guillaume Mourier Date: Thu, 28 Oct 2021 13:25:26 +0200 Subject: [PATCH] add ranking_rules marker before sort_position --- meilisearch-http/src/routes/indexes/settings.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meilisearch-http/src/routes/indexes/settings.rs b/meilisearch-http/src/routes/indexes/settings.rs index 4cb939f79..bccb1640c 100644 --- a/meilisearch-http/src/routes/indexes/settings.rs +++ b/meilisearch-http/src/routes/indexes/settings.rs @@ -192,7 +192,9 @@ make_setting_route!( analytics.publish( "RankingRules Updated".to_string(), json!({ - "sort_position": setting.as_ref().map(|sort| sort.iter().position(|s| s == "sort")), + "ranking_rules": { + "sort_position": setting.as_ref().map(|sort| sort.iter().position(|s| s == "sort")), + } }), Some(req), );