mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
add ranking_rules marker before sort_position
This commit is contained in:
parent
efd0ea9e1e
commit
68fe93b7db
1 changed files with 3 additions and 1 deletions
|
@ -192,7 +192,9 @@ make_setting_route!(
|
||||||
analytics.publish(
|
analytics.publish(
|
||||||
"RankingRules Updated".to_string(),
|
"RankingRules Updated".to_string(),
|
||||||
json!({
|
json!({
|
||||||
|
"ranking_rules": {
|
||||||
"sort_position": setting.as_ref().map(|sort| sort.iter().position(|s| s == "sort")),
|
"sort_position": setting.as_ref().map(|sort| sort.iter().position(|s| s == "sort")),
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
Some(req),
|
Some(req),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue