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
|
|
|
---
|
2013-09-18 15:29:40 +02:00
|
|
|
"Get type mapping - pre 0.90.2":
|
|
|
|
|
|
|
|
- skip:
|
|
|
|
version: "0.90.2 - 999"
|
|
|
|
reason: "for newer versions the index name is always returned"
|
2013-07-25 11:33:55 +02:00
|
|
|
|
2013-07-15 14:53:32 +02:00
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_index
|
2013-07-23 20:24:46 +02:00
|
|
|
type: test_type
|
2013-07-25 11:33:55 +02:00
|
|
|
|
2013-09-18 15:29:40 +02:00
|
|
|
- match: {test_index.test_type.properties.text.type: string}
|
|
|
|
- match: {test_index.test_type.properties.text.analyzer: whitespace}
|
|
|
|
|
|
|
|
---
|
|
|
|
"Get type mapping - post 0.90.2":
|
|
|
|
|
2013-07-23 20:24:46 +02:00
|
|
|
- skip:
|
2013-09-18 15:29:40 +02:00
|
|
|
version: "0 - 0.90.1"
|
|
|
|
reason: "for older versions, just the type name is returned"
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_index
|
|
|
|
type: test_type
|
2013-07-25 11:33:55 +02:00
|
|
|
|
2013-07-23 20:24:46 +02:00
|
|
|
- match: {test_type.properties.text.type: string}
|
|
|
|
- match: {test_type.properties.text.analyzer: whitespace}
|