Skip to content

Commit

Permalink
Feedback: Also test doc_values: false
Browse files Browse the repository at this point in the history
Signed-off-by: Kurt McKee <contactme@kurtmckee.org>
  • Loading branch information
kurtmckee committed Jun 13, 2024
1 parent ce13959 commit 674dd0d
Showing 1 changed file with 68 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
setup:
- do:
indices.create:
index: test
body:
settings:
number_of_replicas: 0
mappings:
properties:
location:
type: "geo_shape"
doc_values: false

---
"Single shape":
- do:
bulk:
refresh: true
body:
- index:
_index: test
_id: 1
- location:
type: "polygon"
coordinates: [
[
[ -87.0, 41.0 ],
[ -88.0, 41.0 ],
[ -88.0, 42.0 ],
[ -87.0, 42.0 ],
[ -87.0, 41.0 ],
]
]

- match: {errors: false}

---
"Array of shapes":
- do:
bulk:
refresh: true
body:
- index:
_index: test
_id: 1
- location:
- type: "polygon"
coordinates: [
[
[ -87.0, 41.0 ],
[ -88.0, 41.0 ],
[ -88.0, 42.0 ],
[ -87.0, 42.0 ],
[ -87.0, 41.0 ],
]
]
- type: "polygon"
coordinates: [
[
[ -97.0, 41.0 ],
[ -98.0, 41.0 ],
[ -98.0, 42.0 ],
[ -97.0, 42.0 ],
[ -97.0, 41.0 ],
]
]

- match: {errors: false}

0 comments on commit 674dd0d

Please sign in to comment.