在修改elasticsearch时,用_update进行局部修改,修改失败,报错
{
"error": {
"root_cause": [
{
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_update]"
}
],
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_update]"
},
"status": 400
}
对比后发现语句没有写错,于是检查es版本,发现我用的es是6.5.4版本,修改局部索引应该用_doc/1001/_update
修改成功