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

45 lines
776 B
YAML

---
"Basic GET":
- do:
catch: missing
get:
index: test_1
type: test
id: 1
- do:
get:
index: test_1
type: test
id: 1
ignore_missing: 1
- do:
index:
index: test_1
type: test
id: 1
body: { "foo": "bar" }
- do:
get:
index: test_1
type: test
id: 1
- match: { _index: test_1 }
- match: { _type: test }
- match: { _id: "1" }
- match: { _source: { foo: bar } }
- do:
get:
index: test_1
id: 1
- match: { _index: test_1 }
- match: { _type: test }
- match: { _id: "1" }
- match: { _source: { foo: bar } }