Hello,
I try to develop solution for use case, when client can create new index only if this index have template.
As one of possible solutions, i inserted 2 templates:
PUT _template/template_all
{
"template": "*",
"order":0,
"settings": {
"index.mapper.dynamic": false
}
}
And
PUT _template/template_1
{
"template": "test*",
"settings": {
"index.mapper.dynamic": true
},
"mappings": {
"_default_": {
"_all": {
"enabled": false
},
"dynamic_templates": [
{
"strings": {
"match_mapping_type": "string",
"mapping": {
"type": "text",
"fields": {
"raw": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
]
}
}
}
If i understand right, now all indexes that started with "test" supposed to be creates with ALL document types.
But as result i received exception "trying to auto create mapping, but dynamic mapping is disabled"
There is no exceptions if i insert the template with defined document type.
So is this correct, that dynamic mapper not working with default mapping?
Anybody know other solution for my use case?
Thank a lot