亲,只收二进制

修改子文档一个字段的,有处理方法吗?类似_update

Elasticsearch | 作者 fanfan0914 | 发布于2022年01月15日 | 阅读数:770

POST cky_com/_doc/5bed72a9b0424a7e0bcf2c2caa94755c/_update?pretty
{"doc":{"istocrm":1}}
 
放的是子文档的_id, 不能更新成功, 出现错误:
{"error": {

"root_cause": [

{

"type": "document_missing_exception",
"reason": "[_doc][5bed72a9b0424a7e0bcf2c2caa94755c]: document missing",
"index_uuid": "hMc9ueYjRie_9EkfSRHUrg",
"shard": "4",
"index": "cky_com"

}

],
"type": "document_missing_exception",
"reason": "[_doc][5bed72a9b0424a7e0bcf2c2caa94755c]: document missing",
"index_uuid": "hMc9ueYjRie_9EkfSRHUrg",
"shard": "4",
"index": "cky_com"

},
"status": 404}
已邀请:

zqc0512 - andy zhou

赞同来自:

是这样的吧? 404 数据没有找到?
POST .monitoring-es-7-2022.01.11/_update/Yt5lR34BNq22BOfiuqEn
{
  "doc":{
  "host":"22.22.22.234"
  }
}
 

fanfan0914

赞同来自:

POST com_test/_doc/22739e3f8bc0d3bc8056c62ba12b2175pos6/_update?routing=22739e3f8bc0d3bc8056c62ba12b2175

{"doc":{
"pos_area":"保定","child":{
"name":"pos", "parent":"22739e3f8bc0d3bc8056c62ba12b2175"
}
}}

要回复问题请先登录注册