definitely remove attributes_ranked on settings; auto create it with ranking_rules

This commit is contained in:
Quentin de Quelen
2020-01-19 10:58:16 +01:00
committed by qdequele
parent 036977bfe4
commit 6deb481589
4 changed files with 24 additions and 35 deletions

View File

@ -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();