Since I can't post the full response, I've posted the initial part:
What was POSTed to create the index mapping:
{
"properties": {
"createdDate": {
"type": "date",
"index": false
}
},
"dynamic_templates": [
{
"period": {
"path_match": "period\..+",
"match_mapping_type": "string",
"match_pattern": "regex",
"mapping": {
"index": true,
"type": "keyword"
}
}
},
{
"groupingUnit": {
"path_match": "groupingUnit\..+",
"match_mapping_type": "string",
"match_pattern": "regex",
"mapping": {
"fields": {
"_search": {
"search_analyzer": "simple_string_search",
"analyzer": "simple_string_index",
"type": "text"
}
},
"index": true,
"type": "keyword"
}
}
},
{
"formElement": {
"path_match": "formElement\..+",
"match_mapping_type": "string",
"match_pattern": "regex",
"mapping": {
"index": false,
"type": "keyword"
}
}
},
{
"formName": {
"path_match": "formName\..+",
"match_mapping_type": "string",
"match_pattern": "regex",
"mapping": {
"fields": {
"_search": {
"search_analyzer": "simple_string_search",
"analyzer": "simple_string_index",
"type": "text"
}
},
"index": true,
"type": "keyword"
}
}
},
{
"document": {
"path_match": "document\..+",
"match_mapping_type": "string",
"match_pattern": "regex",
"mapping": {
"index": true,
"type": "keyword"
}
}
},
{
"groupingUnit": {
"properties": {
"identifier": {
"properties": {
"type": {
"type": "keyword",
"fields": {
"_search": {
"type": "text",
"analyzer": "simple_string_index",
"search_analyzer": "simple_string_search"
}
}
},
"value": {
"type": "keyword",
"fields": {
"_search": {
"type": "text",
"analyzer": "simple_string_index",
"search_analyzer": "simple_string_search"
}
}
}
}
},
"name": {
"type": "keyword",
"fields": {
"_search": {
"type": "text",
"analyzer": "simple_string_index",
"search_analyzer": "simple_string_search"
}
}
},
"role": {
"type": "keyword",
"fields": {
"_search": {
"type": "text",
"analyzer": "simple_string_index",
"search_analyzer": "simple_string_search"
}
}
}
}
}
}
]
}
This is the output from a GET _mapping:
{
"my_index": {
"mappings": {
"properties": {
"dynamic_templates": {
"properties": {
"document": {
"properties": {
"mapping": {
"properties": {
"index": {
"type": "boolean"
},
"type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"match_mapping_type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"match_pattern": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"path_match": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},