2013-07-15 08:43:27 -04:00
|
|
|
---
|
|
|
|
"Test Create and update mapping":
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.put_mapping:
|
|
|
|
index: test_index
|
|
|
|
type: test_type
|
|
|
|
body:
|
|
|
|
test_type:
|
|
|
|
properties:
|
2013-12-27 20:05:31 -05:00
|
|
|
text1:
|
|
|
|
type: string
|
|
|
|
analyzer: whitespace
|
|
|
|
text2:
|
2013-07-15 08:43:27 -04:00
|
|
|
type: string
|
|
|
|
analyzer: whitespace
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_index
|
|
|
|
|
2014-01-14 16:31:42 -05:00
|
|
|
- match: {test_index.mappings.test_type.properties.text1.type: string}
|
|
|
|
- match: {test_index.mappings.test_type.properties.text1.analyzer: whitespace}
|
|
|
|
- match: {test_index.mappings.test_type.properties.text2.type: string}
|
|
|
|
- match: {test_index.mappings.test_type.properties.text2.analyzer: whitespace}
|
2013-07-15 08:43:27 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.put_mapping:
|
|
|
|
index: test_index
|
|
|
|
type: test_type
|
|
|
|
body:
|
|
|
|
test_type:
|
|
|
|
properties:
|
2013-12-27 20:05:31 -05:00
|
|
|
text1:
|
2013-07-15 08:43:27 -04:00
|
|
|
type: multi_field
|
|
|
|
fields:
|
2013-12-27 20:05:31 -05:00
|
|
|
text1:
|
2013-07-15 08:43:27 -04:00
|
|
|
type: string
|
|
|
|
analyzer: whitespace
|
|
|
|
text_raw:
|
|
|
|
type: string
|
|
|
|
index: not_analyzed
|
2013-12-27 20:05:31 -05:00
|
|
|
text2:
|
|
|
|
type: string
|
|
|
|
analyzer: whitespace
|
|
|
|
fields:
|
|
|
|
text_raw:
|
|
|
|
type: string
|
|
|
|
index: not_analyzed
|
|
|
|
|
2013-07-15 08:43:27 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_mapping:
|
|
|
|
index: test_index
|
|
|
|
|
2014-01-14 16:31:42 -05:00
|
|
|
- match: {test_index.mappings.test_type.properties.text1.type: string}
|
|
|
|
- match: {test_index.mappings.test_type.properties.text1.fields.text_raw.index: not_analyzed}
|
|
|
|
- match: {test_index.mappings.test_type.properties.text2.type: string}
|
|
|
|
- match: {test_index.mappings.test_type.properties.text2.fields.text_raw.index: not_analyzed}
|