mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 12:54:26 +01:00
update tests
This commit is contained in:
parent
2eb6f81c58
commit
aa95c26e07
@ -66,7 +66,7 @@ pub fn enrich_server_with_movies_settings(
|
||||
"_exactness",
|
||||
"dsc(vote_average)",
|
||||
],
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"searchableAttributes": [
|
||||
"title",
|
||||
"tagline",
|
||||
@ -92,7 +92,7 @@ pub fn enrich_server_with_movies_settings(
|
||||
],
|
||||
"stopWords": null,
|
||||
"synonyms": null,
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
let body = json.to_string().into_bytes();
|
||||
|
@ -635,7 +635,7 @@ fn search_with_settings_basic() {
|
||||
"_exactness",
|
||||
"dsc(vote_average)"
|
||||
],
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
"searchableAttributes": [
|
||||
"title",
|
||||
@ -662,7 +662,7 @@ fn search_with_settings_basic() {
|
||||
],
|
||||
"stopWords": null,
|
||||
"synonyms": null,
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
common::update_config(&mut server, config);
|
||||
@ -741,7 +741,7 @@ fn search_with_settings_stop_words() {
|
||||
"_exactness",
|
||||
"dsc(vote_average)"
|
||||
],
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
"searchableAttributes": [
|
||||
"title",
|
||||
@ -768,7 +768,7 @@ fn search_with_settings_stop_words() {
|
||||
],
|
||||
"stopWords": ["the"],
|
||||
"synonyms": null,
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
common::update_config(&mut server, config);
|
||||
@ -848,7 +848,7 @@ fn search_with_settings_synonyms() {
|
||||
"_exactness",
|
||||
"dsc(vote_average)"
|
||||
],
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
"searchableAttributes": [
|
||||
"title",
|
||||
@ -880,7 +880,7 @@ fn search_with_settings_synonyms() {
|
||||
"Iron Man"
|
||||
]
|
||||
},
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
common::update_config(&mut server, config);
|
||||
@ -960,7 +960,7 @@ fn search_with_settings_ranking_rules() {
|
||||
"_exactness",
|
||||
"dsc(popularity)"
|
||||
],
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
"searchableAttributes": [
|
||||
"title",
|
||||
@ -987,7 +987,7 @@ fn search_with_settings_ranking_rules() {
|
||||
],
|
||||
"stopWords": null,
|
||||
"synonyms": null,
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
common::update_config(&mut server, config);
|
||||
@ -1067,7 +1067,7 @@ fn search_with_settings_searchable_attributes() {
|
||||
"_exactness",
|
||||
"dsc(vote_average)"
|
||||
],
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
"searchableAttributes": [
|
||||
"tagline",
|
||||
@ -1093,7 +1093,7 @@ fn search_with_settings_searchable_attributes() {
|
||||
],
|
||||
"stopWords": null,
|
||||
"synonyms": null,
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
common::update_config(&mut server, config);
|
||||
@ -1173,7 +1173,7 @@ fn search_with_settings_displayed_attributes() {
|
||||
"_exactness",
|
||||
"dsc(vote_average)"
|
||||
],
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
"searchableAttributes": [
|
||||
"title",
|
||||
@ -1194,7 +1194,7 @@ fn search_with_settings_displayed_attributes() {
|
||||
],
|
||||
"stopWords": null,
|
||||
"synonyms": null,
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
common::update_config(&mut server, config);
|
||||
@ -1244,7 +1244,7 @@ fn search_with_settings_searchable_attributes_2() {
|
||||
"_exactness",
|
||||
"dsc(vote_average)"
|
||||
],
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"identifier": "id",
|
||||
"searchableAttributes": [
|
||||
"tagline",
|
||||
@ -1265,7 +1265,7 @@ fn search_with_settings_searchable_attributes_2() {
|
||||
],
|
||||
"stopWords": null,
|
||||
"synonyms": null,
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
common::update_config(&mut server, config);
|
||||
|
@ -50,7 +50,7 @@ fn write_all_and_delete() {
|
||||
"dsc(release_date)",
|
||||
"dsc(rank)",
|
||||
],
|
||||
"rankingDistinct": "movie_id",
|
||||
"distinctAttribute": "movie_id",
|
||||
"searchableAttributes": [
|
||||
"id",
|
||||
"movie_id",
|
||||
@ -76,7 +76,7 @@ fn write_all_and_delete() {
|
||||
"wolverine": ["xmen", "logan"],
|
||||
"logan": ["wolverine"],
|
||||
},
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
let body = json.to_string().into_bytes();
|
||||
@ -127,12 +127,12 @@ fn write_all_and_delete() {
|
||||
|
||||
let json = json!({
|
||||
"rankingRules": null,
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"searchableAttributes": null,
|
||||
"displayedAttributes": null,
|
||||
"stopWords": null,
|
||||
"synonyms": null,
|
||||
"indexNewFields": true,
|
||||
"acceptNewFields": true,
|
||||
});
|
||||
|
||||
assert_json_eq!(json, res_value, ordered: false);
|
||||
@ -178,7 +178,7 @@ fn write_all_and_update() {
|
||||
"dsc(release_date)",
|
||||
"dsc(rank)",
|
||||
],
|
||||
"rankingDistinct": "movie_id",
|
||||
"distinctAttribute": "movie_id",
|
||||
"searchableAttributes": [
|
||||
"uid",
|
||||
"movie_id",
|
||||
@ -204,7 +204,7 @@ fn write_all_and_update() {
|
||||
"wolverine": ["xmen", "logan"],
|
||||
"logan": ["wolverine"],
|
||||
},
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
let body = json.to_string().into_bytes();
|
||||
@ -261,7 +261,7 @@ fn write_all_and_update() {
|
||||
"wolverine": ["xmen", "logan"],
|
||||
"logan": ["wolverine", "xmen"],
|
||||
},
|
||||
"indexNewFields": false,
|
||||
"acceptNewFields": false,
|
||||
});
|
||||
|
||||
let body_update = json_update.to_string().into_bytes();
|
||||
@ -296,7 +296,7 @@ fn write_all_and_update() {
|
||||
"_exactness",
|
||||
"dsc(release_date)",
|
||||
],
|
||||
"rankingDistinct": null,
|
||||
"distinctAttribute": null,
|
||||
"searchableAttributes": [
|
||||
"title",
|
||||
"description",
|
||||
@ -314,7 +314,7 @@ fn write_all_and_update() {
|
||||
"wolverine": ["xmen", "logan"],
|
||||
"logan": ["wolverine", "xmen"],
|
||||
},
|
||||
"indexNewFields": false
|
||||
"acceptNewFields": false
|
||||
});
|
||||
|
||||
assert_json_eq!(res_expected, res_value, ordered: false);
|
||||
|
Loading…
Reference in New Issue
Block a user