2013-07-01 16:03:37 +02:00
|
|
|
---
|
2014-01-02 19:33:19 +01:00
|
|
|
setup:
|
2013-07-01 16:03:37 +02:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
test:
|
|
|
|
_parent: { type: "foo" }
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
body: { foo: bar }
|
|
|
|
|
2014-01-02 19:33:19 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
"Parent":
|
2013-07-01 16:03:37 +02:00
|
|
|
- do:
|
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
|
|
|
|
- match: { '': {foo: bar}}
|
|
|
|
|
2014-01-02 19:33:19 +01:00
|
|
|
---
|
2014-01-07 16:19:06 +01:00
|
|
|
"Parent omitted":
|
2014-01-02 19:33:19 +01:00
|
|
|
|
2013-07-01 16:03:37 +02:00
|
|
|
- do:
|
2014-01-02 19:33:19 +01:00
|
|
|
catch: request
|
2013-07-01 16:03:37 +02:00
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
|