Skip to content

Commit

Permalink
Rename index and field in geo_bounding_box query test (#562)
Browse files Browse the repository at this point in the history
Signed-off-by: Fanit Kolchina <[email protected]>
  • Loading branch information
kolchfa-aws authored Sep 9, 2024
1 parent d279f4a commit a768a73
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/default/_core/search/query/geo_bounding_box.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit a768a73

Please sign in to comment.