3415: Test all the errors of wrong `_geo` field and bump milli r=dureuill a=irevoire

## Attention to reviewer

The first commit is only a refactoring of the test suite to use snapshot tests everywhere instead of `assert_eq`.
It doesn’t change the content of anything and there is probably nothing to review. I just made it for maintenance purpose in the future.


Fix https://github.com/meilisearch/meilisearch/issues/3414

Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
bors[bot] 2023-01-25 15:54:42 +00:00 committed by GitHub
commit 4549e0a36e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 866 additions and 256 deletions

8
Cargo.lock generated
View File

@ -1301,7 +1301,7 @@ dependencies = [
[[package]] [[package]]
name = "filter-parser" name = "filter-parser"
version = "0.40.0" version = "0.40.0"
source = "git+https://github.com/meilisearch/milli.git?tag=v0.40.0#1c4b1b3b2dcd1b84da603a381c898da879c4adb5" source = "git+https://github.com/meilisearch/milli.git?tag=v0.41.0#4e4d8dfda72e9301d66a637dabaee619ec0d1a02"
dependencies = [ dependencies = [
"nom", "nom",
"nom_locate", "nom_locate",
@ -1320,7 +1320,7 @@ dependencies = [
[[package]] [[package]]
name = "flatten-serde-json" name = "flatten-serde-json"
version = "0.40.0" version = "0.40.0"
source = "git+https://github.com/meilisearch/milli.git?tag=v0.40.0#1c4b1b3b2dcd1b84da603a381c898da879c4adb5" source = "git+https://github.com/meilisearch/milli.git?tag=v0.41.0#4e4d8dfda72e9301d66a637dabaee619ec0d1a02"
dependencies = [ dependencies = [
"serde_json", "serde_json",
] ]
@ -1885,7 +1885,7 @@ dependencies = [
[[package]] [[package]]
name = "json-depth-checker" name = "json-depth-checker"
version = "0.40.0" version = "0.40.0"
source = "git+https://github.com/meilisearch/milli.git?tag=v0.40.0#1c4b1b3b2dcd1b84da603a381c898da879c4adb5" source = "git+https://github.com/meilisearch/milli.git?tag=v0.41.0#4e4d8dfda72e9301d66a637dabaee619ec0d1a02"
dependencies = [ dependencies = [
"serde_json", "serde_json",
] ]
@ -2434,7 +2434,7 @@ dependencies = [
[[package]] [[package]]
name = "milli" name = "milli"
version = "0.40.0" version = "0.40.0"
source = "git+https://github.com/meilisearch/milli.git?tag=v0.40.0#1c4b1b3b2dcd1b84da603a381c898da879c4adb5" source = "git+https://github.com/meilisearch/milli.git?tag=v0.41.0#4e4d8dfda72e9301d66a637dabaee619ec0d1a02"
dependencies = [ dependencies = [
"bimap", "bimap",
"bincode", "bincode",

View File

@ -16,7 +16,7 @@ file-store = { path = "../file-store" }
flate2 = "1.0.24" flate2 = "1.0.24"
fst = "0.4.7" fst = "0.4.7"
memmap2 = "0.5.7" memmap2 = "0.5.7"
milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.40.0", default-features = false } milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.41.0", default-features = false }
roaring = { version = "0.10.0", features = ["serde"] } roaring = { version = "0.10.0", features = ["serde"] }
serde = { version = "1.0.145", features = ["derive"] } serde = { version = "1.0.145", features = ["derive"] }
serde-cs = "0.2.4" serde-cs = "0.2.4"

File diff suppressed because it is too large Load Diff