I have an index has
{
"mappings":{
"properties": {
"Schema": {
"type":"nested",
"properties":{
"Column_Name": {"type":"keyword"}
}
}
}
}
}
I tried to use reindex to change Schema.Column_Name to Schema.Attribute_Name with the following script:
"script":{
"inline": "ctx._source['Schema.Column_Name'] = ctx._source.remove('Schema.Attribute_Name')"
}
But I got error
"type": "mapper_parsing_exception",
"reason": "Cannot add a value for field [Schema.Column_Name] since one of the intermediate objects is mapped as a nested object: [Schema]"
Could someone help? Whether reindex of a nested field is supported?