From 96248d9bfadb56d0658d2bd4262f240c56512722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 25 Feb 2020 14:24:15 +0100 Subject: [PATCH] Change the exactness criterion in the tests --- meilisearch-core/src/database.rs | 2 +- meilisearch-http/tests/common.rs | 2 +- meilisearch-http/tests/search.rs | 14 +++++++------- meilisearch-http/tests/settings.rs | 8 ++++---- meilisearch-http/tests/settings_ranking_rules.rs | 8 ++++---- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/meilisearch-core/src/database.rs b/meilisearch-core/src/database.rs index 5c1e479f8..f66d292f0 100644 --- a/meilisearch-core/src/database.rs +++ b/meilisearch-core/src/database.rs @@ -1064,7 +1064,7 @@ mod tests { "_proximity", "_attribute", "_words_position", - "_exact", + "_exactness", "dsc(release_date)" ], "searchableAttributes": ["name", "release_date"], diff --git a/meilisearch-http/tests/common.rs b/meilisearch-http/tests/common.rs index 90251b602..a9bb0848b 100644 --- a/meilisearch-http/tests/common.rs +++ b/meilisearch-http/tests/common.rs @@ -63,7 +63,7 @@ pub fn enrich_server_with_movies_settings( "_attribute", "_words_position", "dsc(popularity)", - "_exact", + "_exactness", "dsc(vote_average)", ], "rankingDistinct": null, diff --git a/meilisearch-http/tests/search.rs b/meilisearch-http/tests/search.rs index e139ca8af..eb510c90b 100644 --- a/meilisearch-http/tests/search.rs +++ b/meilisearch-http/tests/search.rs @@ -632,7 +632,7 @@ fn search_with_settings_basic() { "_attribute", "_words_position", "dsc(popularity)", - "_exact", + "_exactness", "dsc(vote_average)" ], "rankingDistinct": null, @@ -738,7 +738,7 @@ fn search_with_settings_stop_words() { "_attribute", "_words_position", "dsc(popularity)", - "_exact", + "_exactness", "dsc(vote_average)" ], "rankingDistinct": null, @@ -845,7 +845,7 @@ fn search_with_settings_synonyms() { "_attribute", "_words_position", "dsc(popularity)", - "_exact", + "_exactness", "dsc(vote_average)" ], "rankingDistinct": null, @@ -957,7 +957,7 @@ fn search_with_settings_ranking_rules() { "_attribute", "_words_position", "asc(vote_average)", - "_exact", + "_exactness", "dsc(popularity)" ], "rankingDistinct": null, @@ -1064,7 +1064,7 @@ fn search_with_settings_searchable_attributes() { "_attribute", "_words_position", "dsc(popularity)", - "_exact", + "_exactness", "dsc(vote_average)" ], "rankingDistinct": null, @@ -1170,7 +1170,7 @@ fn search_with_settings_displayed_attributes() { "_attribute", "_words_position", "dsc(popularity)", - "_exact", + "_exactness", "dsc(vote_average)" ], "rankingDistinct": null, @@ -1241,7 +1241,7 @@ fn search_with_settings_searchable_attributes_2() { "_attribute", "_words_position", "dsc(popularity)", - "_exact", + "_exactness", "dsc(vote_average)" ], "rankingDistinct": null, diff --git a/meilisearch-http/tests/settings.rs b/meilisearch-http/tests/settings.rs index a45b17187..19d4ff092 100644 --- a/meilisearch-http/tests/settings.rs +++ b/meilisearch-http/tests/settings.rs @@ -46,7 +46,7 @@ fn write_all_and_delete() { "_proximity", "_attribute", "_words_position", - "_exact", + "_exactness", "dsc(release_date)", "dsc(rank)", ], @@ -174,7 +174,7 @@ fn write_all_and_update() { "_proximity", "_attribute", "_words_position", - "_exact", + "_exactness", "dsc(release_date)", "dsc(rank)", ], @@ -240,7 +240,7 @@ fn write_all_and_update() { "_proximity", "_attribute", "_words_position", - "_exact", + "_exactness", "dsc(release_date)", ], "searchableAttributes": [ @@ -293,7 +293,7 @@ fn write_all_and_update() { "_proximity", "_attribute", "_words_position", - "_exact", + "_exactness", "dsc(release_date)", ], "rankingDistinct": null, diff --git a/meilisearch-http/tests/settings_ranking_rules.rs b/meilisearch-http/tests/settings_ranking_rules.rs index 496cd7274..b310df3cd 100644 --- a/meilisearch-http/tests/settings_ranking_rules.rs +++ b/meilisearch-http/tests/settings_ranking_rules.rs @@ -44,7 +44,7 @@ fn write_all_and_delete() { "_proximity", "_attribute", "_words_position", - "_exact", + "_exactness", "dsc(release_date)", "dsc(rank)", ]); @@ -135,7 +135,7 @@ fn write_all_and_update() { "_proximity", "_attribute", "_words_position", - "_exact", + "_exactness", "dsc(release_date)", "dsc(rank)", ]); @@ -172,7 +172,7 @@ fn write_all_and_update() { "_proximity", "_attribute", "_words_position", - "_exact", + "_exactness", "dsc(release_date)", ]); @@ -204,7 +204,7 @@ fn write_all_and_update() { "_proximity", "_attribute", "_words_position", - "_exact", + "_exactness", "dsc(release_date)", ]);