mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
add ranking_rules marker before sort_position
This commit is contained in:
parent
efd0ea9e1e
commit
68fe93b7db
@ -192,7 +192,9 @@ make_setting_route!(
|
||||
analytics.publish(
|
||||
"RankingRules Updated".to_string(),
|
||||
json!({
|
||||
"ranking_rules": {
|
||||
"sort_position": setting.as_ref().map(|sort| sort.iter().position(|s| s == "sort")),
|
||||
}
|
||||
}),
|
||||
Some(req),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user