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), );