meilisearch/milli/src
meili-bors[bot] 44c1900f36
Merge #3986
3986: Fix geo bounding box with strings r=ManyTheFish a=irevoire

# Pull Request

When sending a document with one geofield of type string (i.e.: `{ "_geo": { "lat": 12, "lng": "13" }}`), the geobounding box would exclude this document.

This PR fixes this issue by automatically parsing the string value in case we're working on a geofield.

## Related issue
Fixes https://github.com/meilisearch/meilisearch/issues/3973

## What does this PR do?
- Automatically parse the facet value iif we're working on a geofield.
- Make insta works with snapshots in loops or closure executed multiple times. (you may need to update your cli if it panics after this PR: `cargo install cargo-insta`).
- Add one integration test in milli and in meilisearch to ensure it works forever.
- Add three snapshots for the dump that mysteriously disappeared I don't know how


Co-authored-by: Tamo <tamo@meilisearch.com>
2023-08-09 07:58:15 +00:00
..
documents fix the addition + deletion bug 2023-05-17 18:28:57 +02:00
facet update milli with the new parser_filter 2021-11-04 15:02:36 +01:00
heed_codec Normalize for the search the facets values 2023-07-20 17:57:07 +02:00
search Merge #3942 2023-07-25 14:37:17 +00:00
snapshots/index.rs Fix tests 2023-06-14 13:30:52 +02:00
update Merge #3986 2023-08-09 07:58:15 +00:00
asc_desc.rs fmt 2023-03-30 23:37:26 +02:00
criterion.rs update the syntax of the geoboundingbox filter to uses brackets instead of parens around lat and lng 2023-02-06 16:50:27 +01:00
distance.rs Replace the hnsw crate by the instant-distance one 2023-07-25 12:37:35 +02:00
error.rs Change the error message when a facet is not searchable 2023-06-28 15:06:09 +02:00
external_documents_ids.rs improve the way we handle the fsts 2023-05-22 11:15:14 +02:00
fields_ids_map.rs Fixes for clippy bringing us down to 18 remaining issues. 2022-10-25 20:49:02 +02:00
index.rs ensure the geoboundingbox works with strings and int geofields in milli and meilisearch 2023-08-08 16:29:25 +02:00
lib.rs Truncate the the normalized long facets used in search for facet value 2023-08-08 16:38:30 +02:00
proximity.rs Remove limit of 1000 position per attribute 2021-10-12 10:10:50 +02:00
readable_slices.rs Make clippy and fmt happy 2023-06-27 12:32:42 +02:00
score_details.rs Fix score details casing 2023-07-25 15:49:33 +02:00
snapshot_tests.rs Add trailing pipe to the snapshots so it doesn't end with trailing whitespace 2023-06-14 13:30:52 +02:00