【发布时间】:2019-05-14 13:56:08
【问题描述】:
我尝试使用_id 更新文档。
POST http://example.org/testrest/_update/X3flr2oB9Don9XlKX05E
这是文档的一部分:
"hits": [
{
"_index": "testrest",
"_type": "testrest",
"_id": "X3flr2oB9Don9XlKX05E",
"_score": 0,
"_source": {
"price_diff_per_sys": "199.8999",
"specs": "",
"gtin_match": "0",
"human_verdict": "Awaiting",
这是请求正文:
{
"doc": {
"human_verdict": "Match"
}
}
然后我得到这个错误:
{
"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
}
如何使用_id 更新文档?
【问题讨论】:
-
你使用的是哪个版本
标签: elasticsearch