Skip to content

Commit

Permalink
Correct linting errors
Browse files Browse the repository at this point in the history
Signed-off-by: Fanit Kolchina <[email protected]>
  • Loading branch information
kolchfa-aws committed Jul 16, 2024
1 parent fec9244 commit e6929fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion spec/schemas/_common.query_dsl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ components:
Set to `false` to throw an exception if the field is not mapped.
type: boolean
field:
type: object
type: object
required:
- distance
- field
Expand Down
22 changes: 11 additions & 11 deletions tests/_core/geodistance_query.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
$schema: ../../json_schemas/test_story.schema.yaml

description: Test search endpoint with geodistance query.
description: Test search endpoint with geo_distance query.
prologues:
- path: /testindex1
- path: /test_index
method: PUT
request_body:
payload:
mappings:
properties:
field:
type: geo_point
- path: /testindex1/_doc/1
method: POST
- path: /test_index/_doc/1
method: POS
parameters:
refresh: true
request_body:
payload:
field:
lat: 74.00
lat: 74
lon: 40.71
status: [201]
epilogues:
- path: /testindex1
- path: /test_index
method: DELETE
status: [200, 404]
chapters:
- synopsis: Search for documents whose point objects are within the specified distance from the specified point.
path: /{index}/_search
parameters:
index: testindex1
index: test_index
method: GET
request_body:
payload:
query:
geo_distance:
distance: "50mi"
distance_type: "arc"
validation_method: "strict"
distance: 50mi
distance_type: arc
validation_method: strict
ignore_unmapped: true
field:
lat: 73.5
Expand All @@ -51,7 +51,7 @@ chapters:
relation: eq
max_score: 1
hits:
- _index: testindex1
- _index: test_index
_score: 1
_source:
field:
Expand Down

0 comments on commit e6929fe

Please sign in to comment.