From c46f3587def0383e24e7293d9e4aee8058c8a371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Wed, 4 May 2022 11:25:36 +0200 Subject: [PATCH 1/2] Bump milli to v0.26.4 --- Cargo.lock | 16 ++++++++-------- meilisearch-auth/Cargo.toml | 2 +- meilisearch-lib/Cargo.toml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ff5c0b5ad..173162bc8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1092,8 +1092,8 @@ dependencies = [ [[package]] name = "filter-parser" -version = "0.1.0" -source = "git+https://github.com/meilisearch/milli.git?tag=v0.26.2#b0c4789301acb70e740f971ec0996c550cac8540" +version = "0.26.4" +source = "git+https://github.com/meilisearch/milli.git?tag=v0.26.4#6ee67df128b63f40eedfe1cb2edfa1a59492e310" dependencies = [ "nom", "nom_locate", @@ -1119,8 +1119,8 @@ dependencies = [ [[package]] name = "flatten-serde-json" -version = "0.1.0" -source = "git+https://github.com/meilisearch/milli.git?tag=v0.26.2#b0c4789301acb70e740f971ec0996c550cac8540" +version = "0.26.4" +source = "git+https://github.com/meilisearch/milli.git?tag=v0.26.4#6ee67df128b63f40eedfe1cb2edfa1a59492e310" dependencies = [ "serde_json", ] @@ -1622,8 +1622,8 @@ dependencies = [ [[package]] name = "json-depth-checker" -version = "0.1.0" -source = "git+https://github.com/meilisearch/milli.git?tag=v0.26.2#b0c4789301acb70e740f971ec0996c550cac8540" +version = "0.26.4" +source = "git+https://github.com/meilisearch/milli.git?tag=v0.26.4#6ee67df128b63f40eedfe1cb2edfa1a59492e310" dependencies = [ "serde_json", ] @@ -2151,8 +2151,8 @@ dependencies = [ [[package]] name = "milli" -version = "0.26.2" -source = "git+https://github.com/meilisearch/milli.git?tag=v0.26.2#b0c4789301acb70e740f971ec0996c550cac8540" +version = "0.26.4" +source = "git+https://github.com/meilisearch/milli.git?tag=v0.26.4#6ee67df128b63f40eedfe1cb2edfa1a59492e310" dependencies = [ "bimap", "bincode", diff --git a/meilisearch-auth/Cargo.toml b/meilisearch-auth/Cargo.toml index c1e047da9..193959b05 100644 --- a/meilisearch-auth/Cargo.toml +++ b/meilisearch-auth/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] enum-iterator = "0.7.0" meilisearch-error = { path = "../meilisearch-error" } -milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.26.2" } +milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.26.4" } rand = "0.8.4" serde = { version = "1.0.136", features = ["derive"] } serde_json = { version = "1.0.79", features = ["preserve_order"] } diff --git a/meilisearch-lib/Cargo.toml b/meilisearch-lib/Cargo.toml index aa18eb97d..41ef7169c 100644 --- a/meilisearch-lib/Cargo.toml +++ b/meilisearch-lib/Cargo.toml @@ -30,7 +30,7 @@ lazy_static = "1.4.0" log = "0.4.14" meilisearch-auth = { path = "../meilisearch-auth" } meilisearch-error = { path = "../meilisearch-error" } -milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.26.2" } +milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.26.4" } mime = "0.3.16" num_cpus = "1.13.1" obkv = "0.2.0" From 5c4c38c79c0fdf960932ecbb4eb53b0a41057796 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 4 May 2022 12:10:52 +0200 Subject: [PATCH 2/2] Fix the tests about the nested fields --- meilisearch-http/tests/search/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/tests/search/mod.rs b/meilisearch-http/tests/search/mod.rs index 3353f16c7..d9b36e85d 100644 --- a/meilisearch-http/tests/search/mod.rs +++ b/meilisearch-http/tests/search/mod.rs @@ -497,7 +497,7 @@ async fn search_facet_distribution() { assert_eq!(code, 200, "{}", response); let dist = response["facetsDistribution"].as_object().unwrap(); dbg!(&dist); - assert_eq!(dist.len(), 2); + assert_eq!(dist.len(), 3); assert_eq!( dist["doggos.name"], json!({ "bobby": 1, "buddy": 1, "gros bill": 1, "turbo": 1, "fast": 1})