From edb9b5ed76b4e4ce329d961ba3be8cc4f255242a Mon Sep 17 00:00:00 2001 From: Mubelotix Date: Wed, 20 Aug 2025 12:08:13 +0200 Subject: [PATCH] Update tests --- crates/milli/src/search/facet/filter.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/milli/src/search/facet/filter.rs b/crates/milli/src/search/facet/filter.rs index 0a6ca5854..4edaf6a7e 100644 --- a/crates/milli/src/search/facet/filter.rs +++ b/crates/milli/src/search/facet/filter.rs @@ -1069,10 +1069,10 @@ mod tests { let rtxn = index.read_txn().unwrap(); let filter = Filter::from_str("_geoRadius(42, 150, 10)").unwrap().unwrap(); let error = filter.evaluate(&rtxn, &index).unwrap_err(); - snapshot!(error.to_string(), @r###" - Attribute `_geo` is not filterable. This index does not have configured filterable attributes. + snapshot!(error.to_string(), @r" + Attribute `_geo/_geojson` is not filterable. This index does not have configured filterable attributes. 12:14 _geoRadius(42, 150, 10) - "###); + "); let filter = Filter::from_str("_geoBoundingBox([42, 150], [30, 10])").unwrap().unwrap(); let error = filter.evaluate(&rtxn, &index).unwrap_err(); @@ -1100,12 +1100,12 @@ mod tests { let rtxn = index.read_txn().unwrap(); - let filter = Filter::from_str("_geoRadius(-100, 150, 10)").unwrap().unwrap(); + let filter = Filter::from_str("_geoRadius(-90, 150, 10)").unwrap().unwrap(); let error = filter.evaluate(&rtxn, &index).unwrap_err(); - snapshot!(error.to_string(), @r###" - Attribute `_geo` is not filterable. Available filterable attribute patterns are: `title`. - 12:16 _geoRadius(-100, 150, 10) - "###); + snapshot!(error.to_string(), @r" + Attribute `_geo/_geojson` is not filterable. Available filterable attribute patterns are: `title`. + 12:15 _geoRadius(-90, 150, 10) + "); let filter = Filter::from_str("_geoBoundingBox([42, 150], [30, 10])").unwrap().unwrap(); let error = filter.evaluate(&rtxn, &index).unwrap_err();