2013-06-28 11:17:23 -04:00
|
|
|
---
|
|
|
|
"Parent with routing":
|
2013-07-01 09:58:23 -04:00
|
|
|
|
2013-06-28 11:17:23 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
test:
|
|
|
|
_parent: { type: "foo" }
|
2014-02-10 06:30:37 -05:00
|
|
|
settings:
|
2014-03-10 08:48:17 -04:00
|
|
|
number_of_shards: 5
|
2014-02-10 06:30:37 -05:00
|
|
|
number_of_replicas: 0
|
|
|
|
|
2013-06-28 11:17:23 -04:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
2014-02-10 06:30:37 -05:00
|
|
|
wait_for_status: green
|
2013-06-28 11:17:23 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
routing: 4
|
|
|
|
body: { foo: bar }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: missing
|
|
|
|
delete:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
routing: 1
|
|
|
|
|
|
|
|
- do:
|
|
|
|
delete:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
parent: 5
|
|
|
|
routing: 4
|
|
|
|
|