mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-27 15:26:28 +00:00
definitely remove attributes_ranked on settings; auto create it with ranking_rules
This commit is contained in:
committed by
qdequele
parent
036977bfe4
commit
6deb481589
@ -973,10 +973,18 @@ mod tests {
|
||||
let settings = {
|
||||
let data = r#"
|
||||
{
|
||||
"ranking_rules": [
|
||||
"_typo",
|
||||
"_words",
|
||||
"_proximity",
|
||||
"_attribute",
|
||||
"_words_position",
|
||||
"_exact",
|
||||
"dsc(release_date)"
|
||||
],
|
||||
"attribute_identifier": "id",
|
||||
"attributes_searchable": ["name", "release_date"],
|
||||
"attributes_displayed": ["name", "release_date"],
|
||||
"attributes_ranked": ["release_date"]
|
||||
"attributes_displayed": ["name", "release_date"]
|
||||
}
|
||||
"#;
|
||||
let settings: Settings = serde_json::from_str(data).unwrap();
|
||||
|
Reference in New Issue
Block a user