Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Merge #162
Browse files Browse the repository at this point in the history
162: Re-enable ranking rules route r=MarinPostma a=MarinPostma

re-enable ranking rules setting route


Co-authored-by: Marin Postma <postma.marin@protonmail.com>
  • Loading branch information
bors[bot] and MarinPostma authored Apr 27, 2021
2 parents 7055384 + bb79a15 commit 3d85b2d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions meilisearch-http/src/routes/settings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ make_setting_route!(
distinct_attribute
);

//make_setting_route!(
//"/indexes/{index_uid}/settings/ranking-rules",
//Vec<String>,
//ranking_rules
//);
make_setting_route!(
"/indexes/{index_uid}/settings/ranking-rules",
Vec<String>,
ranking_rules
);

macro_rules! create_services {
($($mod:ident),*) => {
Expand All @@ -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")]
Expand Down

0 comments on commit 3d85b2d

Please sign in to comment.