{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "object mapping for [name] tried to parse field [name] as object, but found a concrete value"
}
],
"type" : "mapper_parsing_exception",
"reason" : "object mapping for [name] tried to parse field [name] as object, but found a concrete value"
},
"status" : 400
}
workaround
PUT _ingest/pipeline/my-pipeline-id
{
"description": "rename name to name.last",
"processors": [
{
"rename": {
"field": "name",
"target_field": "name.last"
}
}
]
}
POST test2/_doc/1
{
"name" : {
"last" : "goro"
}
}
POST test2/_doc/2
{
"name": "taro"
}
POST test2/_doc/2?pipeline=my-pipeline-id
{
"name": "taro"
}
GET test2/_search