OpenSearch/rest-api-spec/test/index/10_with_id.yaml

25 lines
515 B
YAML

---
"Index with ID":
- do:
index:
index: test_1
type: test
id: 1
body: { foo: bar }
- ok: ok
- match: { _index: test_1 }
- match: { _type: test }
- match: { _id: 1}
- match: { _version: 1}
- do:
get:
index: test_1
type: test
id: 1
- match: { _index: test_1 }
- match: { _type: test }
- match: { _id: 1}
- match: { _version: 1}
- match: { _source: { foo: bar }}