2013-07-15 14:53:32 +02:00
|
|
|
---
|
2013-09-18 15:29:40 +02:00
|
|
|
setup:
|
2013-07-15 14:53:32 +02:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
test_type:
|
|
|
|
properties:
|
|
|
|
text:
|
|
|
|
type: string
|
|
|
|
analyzer: whitespace
|
|
|
|
|
2013-09-18 15:29:40 +02:00
|
|
|
---
|
|
|
|
"Get index mapping":
|
2013-07-15 14:53:32 +02:00
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_index
|
2013-07-23 20:24:46 +02:00
|
|
|
|
|
|
|
- match: {test_index.test_type.properties.text.type: string}
|
|
|
|
- match: {test_index.test_type.properties.text.analyzer: whitespace}
|
2013-07-15 14:53:32 +02:00
|
|
|
|
2013-07-25 11:33:55 +02:00
|
|
|
---
|
2014-01-07 16:19:06 +01:00
|
|
|
"Get type mapping":
|
2013-09-18 15:29:40 +02:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_index
|
|
|
|
type: test_type
|
2013-07-25 11:33:55 +02:00
|
|
|
|
2013-09-23 13:53:32 +02:00
|
|
|
- match: {test_index.test_type.properties.text.type: string}
|
|
|
|
- match: {test_index.test_type.properties.text.analyzer: whitespace}
|