After upgrade from opendistro from 1.11.0 to 1.13.2, I got the error message for the existing index - “unknown parameter [fielddata] on mapper [userName] of type [keyword]”.
How to fix?
Do I need to modify the index template for string_fields
?
"dynamic_templates" : [
{
"resources_match": {
"path_match": "resources.*",
"mapping" : {
"fielddata": false,
"index" : true,
"norms" : false,
"type" : "text"
}
}
},
{
"string_fields": {
"mapping": {
"fielddata": false,
"index": true,
"norms": false,
"type": "keyword",
"ignore_above": 256
},
"match_mapping_type": "string",
"match": "*"
}
}
],