rest-api-spec.test.update.22_doc_as_upsert.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-spec Show documentation
Show all versions of rest-api-spec Show documentation
OpenSearch subproject :rest-api-spec
---
"Doc as upsert":
- do:
update:
index: test_1
id: 1
body:
doc: { foo: bar, count: 1 }
doc_as_upsert: true
- do:
get:
index: test_1
id: 1
- match: { _source.foo: bar }
- match: { _source.count: 1 }
- do:
update:
index: test_1
id: 1
body:
doc: { count: 2 }
doc_as_upsert: true
- do:
get:
index: test_1
id: 1
- match: { _source.foo: bar }
- match: { _source.count: 2 }
© 2015 - 2024 Weber Informatics LLC | Privacy Policy