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>
This commit is contained in:
bors[bot] 2021-04-27 13:55:40 +00:00 committed by GitHub
commit 3d85b2d854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),*) => {
@ -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")]