I want to make the default analyzer for the string type for ALL string fields across ALL indexes to “index”: “not_analyzed” (or the equivalent formulation for templates).
Something like this, but this doesn’t work:
PUT /_template/template_for_all_indexes
{
"template" : "*",
"aliases" : {},
"mappings": {
"_default_": {
"properties": {
"match_mapping_type": "string",
"mapping": {
"type": "string",
"analyzer": "not_analyzed"
}
}
}
}
}
And will such a template override my more specific matching templates? In some other templates I want to make certain string fields analyzed if they have a certain name.