elasticsearch7.2.0版本,在kibnan操作的
执行如下操作就会报错
PUT myindex/_doc/18
{
"name": "pipeline",
"dat3":"测试",
"msg": "123",
"ab":{
"content":{
"c":"564654123"
}
},
"newFile2":{
"name":{
"id":"564654123"
}
},
"newFile1":"111"
}```
报错信息
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "failed to parse field [newFile2] of type [text] in document with id '18'"
}
],
"type": "mapper_parsing_exception",
"reason": "failed to parse field [newFile2] of type [text] in document with id '18'",
"caused_by": {
"type": "illegal_state_exception",
"reason": "Can't get text on a START_OBJECT at 10:14"
}
},
"status": 400
}
但是吧newFile2变成newFile3,newFile1变成newFile5就正常添加了,没有问题
PUT myindex/_doc/18
{
"name": "pipeline",
"dat3":"测试",
"msg": "123",
"ab":{
"content":{
"c":"564654123"
}
},
"newFile3":{
"name":{
"id":"564654123"
}
},
"newFile5":"111"
}
有人知道是什么原因吗