OpenSearch/rest-api-spec/test/get_source/10_basic.yaml

39 lines
594 B
YAML

---
"Basic":
- do:
catch: missing
get_source:
index: test_1
type: test
id: 1
- do:
get_source:
index: test_1
type: test
id: 1
ignore_missing: 1
- do:
index:
index: test_1
type: test
id: 1
body: { "foo": "bar" }
- do:
get_source:
index: test_1
type: test
id: 1
- match: { '': { foo: bar } }
- do:
get_source:
index: test_1
id: 1
- match: { '': { foo: bar } }