OpenSearch/rest-api-spec/test/update/80_fields.yaml

20 lines
361 B
YAML

---
"Metadata Fields":
- do:
update:
index: test_1
type: test
id: 1
fields: foo,bar,_source
body:
doc: { foo: baz }
upsert: { foo: bar }
- match: { get._source.foo: bar }
- match: { get.fields.foo: bar }
- is_false: get.fields.bar
#### ADD _routing etc