2013-07-23 20:24:46 +02:00

33 lines
820 B
YAML

---
"Get mapping tests":
- do:
indices.create:
index: test_index
body:
mappings:
test_type:
properties:
text:
type: string
analyzer: whitespace
- 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}
- do:
indices.get_mapping:
index: test_index
type: test_type
- skip:
version: "0.90.2 - 999"
reason: "for newer versions the index name is always required"
- match: {test_type.properties.text.type: string}
- match: {test_type.properties.text.analyzer: whitespace}