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

27 lines
599 B
YAML
Raw Normal View History

2013-06-23 16:03:05 -04:00
---
"Index with ID":
2013-06-23 16:03:05 -04:00
- do:
index:
index: test-weird-index-中文
type: weird.type
2013-06-23 16:03:05 -04:00
id: 1
body: { foo: bar }
- match: { _index: test-weird-index-中文 }
- match: { _type: weird.type }
2013-07-11 07:52:20 -04:00
- match: { _id: "1"}
2013-06-23 16:03:05 -04:00
- match: { _version: 1}
2013-06-26 16:04:20 -04:00
2013-06-23 16:03:05 -04:00
- do:
get:
index: test-weird-index-中文
type: weird.type
2013-06-23 16:03:05 -04:00
id: 1
- match: { _index: test-weird-index-中文 }
- match: { _type: weird.type }
2013-07-11 07:52:20 -04:00
- match: { _id: "1"}
2013-06-23 16:03:05 -04:00
- match: { _version: 1}
- match: { _source: { foo: bar }}