Global template for all indices and types

Hello.

Is there a possibility to create a template such that all new types in all
new indices will have a specific mapping?

I'd like to disable analyzing of all string fields.
For particular index/type it's easy to put mapping:
{ "typeName" : {
"dynamic_templates" : [
{
"no_analyze_strings" : {
"match_mapping_type" : "string",
"match" : "*",
"mapping" : {
"type" : "string",
"index" : "not_analyzed"
}
}
}]
}}

But how to define a template cluster-wide that will apply this mapping to
all new types?

Regards
Wojciech Durczyński

Create an index template (
Elasticsearch Platform — Find real-time answers at scale | Elastic)
matching *, with a single mapping, of type default, with the below
dynamic templates. Should work.

2012/1/11 Wojciech Durczyński wojciech.durczynski@comarch.com

Hello.

Is there a possibility to create a template such that all new types in all
new indices will have a specific mapping?

I'd like to disable analyzing of all string fields.
For particular index/type it's easy to put mapping:
{ "typeName" : {
"dynamic_templates" : [
{
"no_analyze_strings" : {
"match_mapping_type" : "string",
"match" : "*",
"mapping" : {
"type" : "string",
"index" : "not_analyzed"
}
}
}]
}}

But how to define a template cluster-wide that will apply this mapping to
all new types?

Regards
Wojciech Durczyński