33 lines
752 B
YAML
Raw Normal View History

2013-07-15 14:53:32 +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
---
"Get index mapping":
2013-07-15 14:53:32 +02:00
- do:
indices.get_mapping:
index: test_index
- 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
---
"Get type mapping":
- do:
indices.get_mapping:
index: test_index
type: test_type
- match: {test_index.test_type.properties.text.type: string}
- match: {test_index.test_type.properties.text.analyzer: whitespace}