diff --git a/specs/common/schemas/SearchParams.yml b/specs/common/schemas/SearchParams.yml index 768d880cd2..425e0a3478 100644 --- a/specs/common/schemas/SearchParams.yml +++ b/specs/common/schemas/SearchParams.yml @@ -275,20 +275,24 @@ aroundLatLngViaIP: insideBoundingBox: type: array items: - type: number - format: double + type: array + items: + type: number + format: double description: Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates). - example: [46.650828100116044,7.123046875,45.17210966999772,1.009765625] + example: [[47.3165, 4.9665, 47.3424, 5.0201], [40.9234, 2.1185, 38.6430, 1.9916]] x-categories: - Geo-Search insidePolygon: type: array items: - type: number - format: double + type: array + items: + type: number + format: double description: Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates). - example: [46.650828100116044,7.123046875,45.17210966999772,1.009765625,49.62625916704081,4.6181640625] + example: [[47.3165, 4.9665, 47.3424, 5.0201, 47.32, 4.9], [40.9234, 2.1185, 38.6430, 1.9916, 39.2587, 2.0104]] x-categories: - Geo-Search diff --git a/tests/CTS/methods/requests/search/search.json b/tests/CTS/methods/requests/search/search.json index cba6647fe6..4ee37422ea 100644 --- a/tests/CTS/methods/requests/search/search.json +++ b/tests/CTS/methods/requests/search/search.json @@ -360,12 +360,36 @@ "ignorePlurals": false, "indexName": "theIndexName", "insideBoundingBox": [ - 47.3165, - 4.9665 + [ + 47.3165, + 4.9665, + 47.3424, + 5.0201 + ], + [ + 40.9234, + 2.1185, + 38.643, + 1.9916 + ] ], "insidePolygon": [ - 47.3165, - 4.9665 + [ + 47.3165, + 4.9665, + 47.3424, + 5.0201, + 47.32, + 4.9 + ], + [ + 40.9234, + 2.1185, + 38.643, + 1.9916, + 39.2587, + 2.0104 + ] ], "keepDiacriticsOnCharacters": "", "length": 0,