2013-07-01 10:03:37 -04:00
|
|
|
---
|
2014-01-02 13:33:19 -05:00
|
|
|
setup:
|
2013-07-01 10:03:37 -04: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 13:33:19 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
"Parent":
|
2013-07-01 10:03:37 -04:00
|
|
|
- do:
|
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
|
|
|
|
- match: { '': {foo: bar}}
|
|
|
|
|
2014-01-02 13:33:19 -05:00
|
|
|
---
|
2014-01-07 10:19:06 -05:00
|
|
|
"Parent omitted":
|
2014-01-02 13:33:19 -05:00
|
|
|
|
2013-07-01 10:03:37 -04:00
|
|
|
- do:
|
2014-01-02 13:33:19 -05:00
|
|
|
catch: request
|
2013-07-01 10:03:37 -04:00
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
|