2013-06-23 16:03:05 -04:00
|
|
|
---
|
|
|
|
"Index without ID":
|
2013-07-01 09:58:23 -04:00
|
|
|
|
2013-06-23 16:03:05 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
body: { foo: bar }
|
2013-07-01 09:58:23 -04:00
|
|
|
|
|
|
|
- is_true: ok
|
|
|
|
- is_true: _id
|
2013-06-23 16:03:05 -04:00
|
|
|
- match: { _index: test_1 }
|
|
|
|
- match: { _type: test }
|
|
|
|
- match: { _version: 1 }
|
|
|
|
- set: { _id: id }
|
2013-06-26 16:04:20 -04:00
|
|
|
|
2013-06-23 16:03:05 -04:00
|
|
|
- do:
|
|
|
|
get:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: '$id'
|
2013-07-01 09:58:23 -04:00
|
|
|
|
2013-06-23 16:03:05 -04:00
|
|
|
- match: { _index: test_1 }
|
|
|
|
- match: { _type: test }
|
|
|
|
- match: { _id: $id }
|
|
|
|
- match: { _version: 1 }
|
|
|
|
- match: { _source: { foo: bar }}
|
|
|
|
|