From c9860c7913ddab838321ce10457082b7b682e293 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Wed, 6 Dec 2023 14:49:29 +0100 Subject: [PATCH] Small test fixes --- dump/src/lib.rs | 1 + dump/src/reader/compat/v5_to_v6.rs | 1 + meilisearch/tests/dumps/mod.rs | 12 ++++++++++++ 3 files changed, 14 insertions(+) diff --git a/dump/src/lib.rs b/dump/src/lib.rs index fa3cfb49a..15b281c41 100644 --- a/dump/src/lib.rs +++ b/dump/src/lib.rs @@ -267,6 +267,7 @@ pub(crate) mod test { dictionary: Setting::NotSet, synonyms: Setting::NotSet, distinct_attribute: Setting::NotSet, + proximity_precision: Setting::NotSet, typo_tolerance: Setting::NotSet, faceting: Setting::Set(FacetingSettings { max_values_per_facet: Setting::Set(111), diff --git a/dump/src/reader/compat/v5_to_v6.rs b/dump/src/reader/compat/v5_to_v6.rs index 9e938d756..8a0d6e5e1 100644 --- a/dump/src/reader/compat/v5_to_v6.rs +++ b/dump/src/reader/compat/v5_to_v6.rs @@ -345,6 +345,7 @@ impl From> for v6::Settings { dictionary: v6::Setting::NotSet, synonyms: settings.synonyms.into(), distinct_attribute: settings.distinct_attribute.into(), + proximity_precision: v6::Setting::NotSet, typo_tolerance: match settings.typo_tolerance { v5::Setting::Set(typo) => v6::Setting::Set(v6::TypoTolerance { enabled: typo.enabled.into(), diff --git a/meilisearch/tests/dumps/mod.rs b/meilisearch/tests/dumps/mod.rs index c69623e9e..9e949436a 100644 --- a/meilisearch/tests/dumps/mod.rs +++ b/meilisearch/tests/dumps/mod.rs @@ -59,6 +59,7 @@ async fn import_dump_v1_movie_raw() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -219,6 +220,7 @@ async fn import_dump_v1_movie_with_settings() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -365,6 +367,7 @@ async fn import_dump_v1_rubygems_with_settings() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -497,6 +500,7 @@ async fn import_dump_v2_movie_raw() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -641,6 +645,7 @@ async fn import_dump_v2_movie_with_settings() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -784,6 +789,7 @@ async fn import_dump_v2_rubygems_with_settings() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -916,6 +922,7 @@ async fn import_dump_v3_movie_raw() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -1060,6 +1067,7 @@ async fn import_dump_v3_movie_with_settings() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -1203,6 +1211,7 @@ async fn import_dump_v3_rubygems_with_settings() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -1335,6 +1344,7 @@ async fn import_dump_v4_movie_raw() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -1479,6 +1489,7 @@ async fn import_dump_v4_movie_with_settings() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": { @@ -1622,6 +1633,7 @@ async fn import_dump_v4_rubygems_with_settings() { "dictionary": [], "synonyms": {}, "distinctAttribute": null, + "proximityPrecision": null, "typoTolerance": { "enabled": true, "minWordSizeForTypos": {