push a first implementation of the stop_words

This commit is contained in:
tamo 2021-04-06 15:41:03 +02:00
parent 2206a44baf
commit 40ef9a3c6a
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
6 changed files with 66 additions and 15 deletions

View file

@ -16,21 +16,21 @@ async fn get_settings() {
let (response, code) = index.settings().await;
assert_eq!(code, 200);
let settings = response.as_object().unwrap();
assert_eq!(settings.keys().len(), 4);
assert_eq!(settings.keys().len(), 5);
assert_eq!(settings["displayedAttributes"], json!(["*"]));
assert_eq!(settings["searchableAttributes"], json!(["*"]));
assert_eq!(settings["attributesForFaceting"], json!({}));
assert_eq!(
settings["rankingRules"],
json!([
"typo",
"words",
"typo",
"proximity",
"attribute",
"wordsPosition",
"exactness"
])
);
assert_eq!(settings["stopWords"], json!(null));
}
#[actix_rt::test]