From bb79a15c042793cc48fb81a6e3de2299c64b5479 Mon Sep 17 00:00:00 2001 From: Marin Postma Date: Tue, 27 Apr 2021 15:29:00 +0200 Subject: [PATCH] reenable ranking rules route --- meilisearch-http/src/routes/settings/mod.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/meilisearch-http/src/routes/settings/mod.rs b/meilisearch-http/src/routes/settings/mod.rs index 54cc53d7e..c4403d9d7 100644 --- a/meilisearch-http/src/routes/settings/mod.rs +++ b/meilisearch-http/src/routes/settings/mod.rs @@ -103,11 +103,11 @@ make_setting_route!( distinct_attribute ); -//make_setting_route!( -//"/indexes/{index_uid}/settings/ranking-rules", -//Vec, -//ranking_rules -//); +make_setting_route!( + "/indexes/{index_uid}/settings/ranking-rules", + Vec, + ranking_rules +); macro_rules! create_services { ($($mod:ident),*) => { @@ -130,7 +130,8 @@ create_services!( displayed_attributes, searchable_attributes, distinct_attribute, - stop_words + stop_words, + ranking_rules ); #[post("/indexes/{index_uid}/settings", wrap = "Authentication::Private")]