Introduce the new invalid sortable error codes

This commit is contained in:
Kerollmops
2021-08-24 18:52:28 +02:00
parent 2d8dd87cad
commit 51387b2c80
7 changed files with 25 additions and 21 deletions

View File

@ -13,7 +13,14 @@ static DEFAULT_SETTINGS_VALUES: Lazy<HashMap<&'static str, Value>> = Lazy::new(|
map.insert("distinct_attribute", json!(Value::Null));
map.insert(
"ranking_rules",
json!(["words", "typo", "proximity", "attribute", "exactness"]),
json!([
"words",
"typo",
"sort",
"proximity",
"attribute",
"exactness"
]),
);
map.insert("stop_words", json!([]));
map.insert("synonyms", json!({}));
@ -42,7 +49,14 @@ async fn get_settings() {
assert_eq!(settings["distinctAttribute"], json!(null));
assert_eq!(
settings["rankingRules"],
json!(["words", "typo", "proximity", "attribute", "exactness"])
json!([
"words",
"typo",
"sort",
"proximity",
"attribute",
"exactness"
])
);
assert_eq!(settings["stopWords"], json!([]));
}