2014-08-15 04:26:54 -04:00
|
|
|
---
|
|
|
|
setup:
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test-xxx
|
|
|
|
body:
|
2014-08-18 09:36:43 -04:00
|
|
|
settings:
|
|
|
|
index:
|
|
|
|
number_of_replicas: 0
|
|
|
|
mappings:
|
|
|
|
type_1: {}
|
2014-08-15 04:26:54 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test-xxy
|
|
|
|
body:
|
2014-08-18 09:36:43 -04:00
|
|
|
settings:
|
|
|
|
index:
|
|
|
|
number_of_replicas: 0
|
|
|
|
mappings:
|
|
|
|
type_2: {}
|
2014-08-15 04:26:54 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test-xyy
|
|
|
|
body:
|
2014-08-18 09:36:43 -04:00
|
|
|
settings:
|
|
|
|
index:
|
|
|
|
number_of_replicas: 0
|
|
|
|
mappings:
|
|
|
|
type_3: {}
|
2014-08-15 04:26:54 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test-yyy
|
|
|
|
body:
|
2014-08-18 09:36:43 -04:00
|
|
|
settings:
|
|
|
|
index:
|
|
|
|
number_of_replicas: 0
|
|
|
|
mappings:
|
|
|
|
type_4: {}
|
2014-08-15 04:26:54 -04:00
|
|
|
|
2014-08-18 05:18:12 -04:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: green
|
|
|
|
|
2014-08-15 04:26:54 -04:00
|
|
|
- do:
|
|
|
|
indices.close:
|
|
|
|
index: test-xyy
|
|
|
|
|
2014-08-18 05:18:12 -04:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: green
|
|
|
|
|
2014-08-15 04:26:54 -04:00
|
|
|
---
|
|
|
|
"Get test-* with defaults":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test-x*
|
|
|
|
|
2015-04-16 12:16:00 -04:00
|
|
|
- match: { test-xxx.mappings.type_1: {}}
|
|
|
|
- match: { test-xxy.mappings.type_2: {}}
|
2014-08-15 04:26:54 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
"Get test-* with wildcard_expansion=all":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test-x*
|
|
|
|
expand_wildcards: all
|
|
|
|
|
2015-04-16 12:16:00 -04:00
|
|
|
- match: { test-xxx.mappings.type_1: {}}
|
|
|
|
- match: { test-xxy.mappings.type_2: {}}
|
|
|
|
- match: { test-xyy.mappings.type_3: {}}
|
2014-08-15 04:26:54 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
"Get test-* with wildcard_expansion=open":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test-x*
|
|
|
|
expand_wildcards: open
|
|
|
|
|
2015-04-16 12:16:00 -04:00
|
|
|
- match: { test-xxx.mappings.type_1: {}}
|
|
|
|
- match: { test-xxy.mappings.type_2: {}}
|
2014-08-15 04:26:54 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
"Get test-* with wildcard_expansion=closed":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test-x*
|
|
|
|
expand_wildcards: closed
|
|
|
|
|
2015-04-16 12:16:00 -04:00
|
|
|
- match: { test-xyy.mappings.type_3: {}}
|
2014-08-15 04:26:54 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
"Get test-* with wildcard_expansion=none":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test-x*
|
|
|
|
expand_wildcards: none
|
|
|
|
|
2014-09-11 07:22:06 -04:00
|
|
|
- match: { $body: {} }
|
2014-08-12 06:42:12 -04:00
|
|
|
|
2014-08-15 04:26:54 -04:00
|
|
|
---
|
|
|
|
"Get test-* with wildcard_expansion=open,closed":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test-x*
|
|
|
|
expand_wildcards: open,closed
|
|
|
|
|
2015-04-16 12:16:00 -04:00
|
|
|
- match: { test-xxx.mappings.type_1: {}}
|
|
|
|
- match: { test-xxy.mappings.type_2: {}}
|
|
|
|
- match: { test-xyy.mappings.type_3: {}}
|
2014-08-15 04:26:54 -04:00
|
|
|
|
|
|
|
|