2014-01-27 08:49:41 -05:00
|
|
|
---
|
|
|
|
"Create index with mappings":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
type_1: {}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_index
|
|
|
|
|
2015-04-16 12:16:00 -04:00
|
|
|
- match: { test_index.mappings.type_1: {}}
|
2014-01-27 08:49:41 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
"Create index with settings":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_replicas: "0"
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_settings:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- match: { test_index.settings.index.number_of_replicas: "0"}
|
|
|
|
|
|
|
|
---
|
|
|
|
"Create index with warmers":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
body:
|
|
|
|
warmers:
|
|
|
|
test_warmer:
|
|
|
|
source:
|
|
|
|
query:
|
|
|
|
match_all: {}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_warmer:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- match: {test_index.warmers.test_warmer.source.query.match_all: {}}
|
|
|
|
|
|
|
|
---
|
2014-01-28 04:47:40 -05:00
|
|
|
"Create index with aliases":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
body:
|
2014-07-18 16:50:07 -04:00
|
|
|
mappings:
|
|
|
|
type_1:
|
|
|
|
properties:
|
|
|
|
field:
|
|
|
|
type: string
|
2014-01-28 04:47:40 -05:00
|
|
|
aliases:
|
|
|
|
test_alias: {}
|
|
|
|
test_blias:
|
|
|
|
routing: b
|
|
|
|
test_clias:
|
|
|
|
filter:
|
|
|
|
term:
|
|
|
|
field : value
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_alias:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- match: {test_index.aliases.test_alias: {}}
|
|
|
|
- match: {test_index.aliases.test_blias.search_routing: b}
|
|
|
|
- match: {test_index.aliases.test_blias.index_routing: b}
|
|
|
|
- is_false: test_index.aliases.test_blias.filter
|
|
|
|
- match: {test_index.aliases.test_clias.filter.term.field: value}
|
|
|
|
- is_false: test_index.aliases.test_clias.index_routing
|
|
|
|
- is_false: test_index.aliases.test_clias.search_routing
|
|
|
|
|
|
|
|
---
|
|
|
|
"Create index with mappings, settings, warmers and aliases":
|
2014-01-27 08:49:41 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
type_1: {}
|
|
|
|
settings:
|
|
|
|
number_of_replicas: "0"
|
|
|
|
warmers:
|
|
|
|
test_warmer:
|
|
|
|
source:
|
|
|
|
query:
|
|
|
|
match_all: {}
|
2014-01-28 04:47:40 -05:00
|
|
|
aliases:
|
|
|
|
test_alias: {}
|
|
|
|
test_blias: {routing: b}
|
2014-01-27 08:49:41 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_index
|
|
|
|
|
2015-04-16 12:16:00 -04:00
|
|
|
- match: { test_index.mappings.type_1: {}}
|
2014-01-27 08:49:41 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_settings:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- match: { test_index.settings.index.number_of_replicas: "0"}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_warmer:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- match: { test_index.warmers.test_warmer.source.query.match_all: {}}
|
2014-01-28 04:47:40 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_alias:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- match: { test_index.aliases.test_alias: {}}
|
|
|
|
- match: { test_index.aliases.test_blias.search_routing: b}
|
|
|
|
- match: { test_index.aliases.test_blias.index_routing: b}
|