diff --git a/meilisearch-http/src/index/mod.rs b/meilisearch-http/src/index/mod.rs
index c50c2873c..1afeb3478 100644
--- a/meilisearch-http/src/index/mod.rs
+++ b/meilisearch-http/src/index/mod.rs
@@ -44,11 +44,17 @@ impl Index {
.map(|(k, v)| (k, v.to_string()))
.collect();
+ let criteria = self
+ .criteria(&txn)?
+ .into_iter()
+ .map(|c| c.to_string())
+ .collect();
+
Ok(Settings {
displayed_attributes: Some(Some(displayed_attributes)),
searchable_attributes: Some(Some(searchable_attributes)),
faceted_attributes: Some(Some(faceted_attributes)),
- criteria: None,
+ ranking_rules: Some(Some(criteria)),
})
}
diff --git a/meilisearch-http/src/index/updates.rs b/meilisearch-http/src/index/updates.rs
index 129a340a7..70c2dfc2b 100644
--- a/meilisearch-http/src/index/updates.rs
+++ b/meilisearch-http/src/index/updates.rs
@@ -42,7 +42,7 @@ pub struct Settings {
deserialize_with = "deserialize_some",
skip_serializing_if = "Option::is_none",
)]
- pub criteria: Option