From a768a73f8f8ec04b6464be4ac6b50e52c994da25 Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:21:19 -0400 Subject: [PATCH] Rename index and field in geo_bounding_box query test (#562) Signed-off-by: Fanit Kolchina --- .../_core/search/query/geo_bounding_box.yaml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/default/_core/search/query/geo_bounding_box.yaml b/tests/default/_core/search/query/geo_bounding_box.yaml index 1bdc7f605..bee1e0a30 100644 --- a/tests/default/_core/search/query/geo_bounding_box.yaml +++ b/tests/default/_core/search/query/geo_bounding_box.yaml @@ -2,39 +2,39 @@ $schema: ../../../../../json_schemas/test_story.schema.yaml description: Test search endpoint with geo_bounding_box query. prologues: - - path: /point_index + - path: /cinemas method: PUT request: payload: mappings: properties: - field: + location: type: geo_point - - path: /point_index/_doc/1 + - path: /cinemas/_doc/1 method: POST parameters: refresh: true request: payload: - field: + location: lat: 74 lon: 40 status: [201] epilogues: - - path: /point_index + - path: /cinemas method: DELETE status: [200, 404] chapters: - - synopsis: Search point_index for documents whose point objects are within the specified bounding box. + - synopsis: Search cinemas for documents whose point objects are within the specified bounding box. path: /{index}/_search parameters: - index: point_index + index: cinemas method: GET request: payload: query: geo_bounding_box: - field: + location: top: 75 left: 28 bottom: 73 @@ -52,9 +52,9 @@ chapters: relation: eq max_score: 1 hits: - - _index: point_index + - _index: cinemas _score: 1 _source: - field: + location: lat: 74 lon: 40 \ No newline at end of file