先备份查出来之前的数据

GET /didi/_search
{
  "query": {
    "bool": {
      "must": [
        {
          "term": {
            "_id": "i2XK-4EBF56tTd_xHCvV"
          }
        }
      ]
    }
  }
 
}
{
  "took" : 994,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 1,
      "relation" : "eq"
    },
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "didi",
        "_type" : "_doc",
        "_id" : "i2XK-4EBF56tTd_xHCvV",
        "_score" : 1.0,
        "_source" : {
          "transid" : "123456789",
          "@timestamp" : "2020-07-14T08:17:43.585Z",
          "log_time" : "2020-07-14 16:17:40:613",
          "tags" : [
            "_dateparsefailure"
          ],
          "testlog_time" : "2020-07-14 16:17:40:613",
          "message" : “didi”
        }
      }
    ]
  }
}

直接修改数据

PUT /didi/_doc/fWXH-4EBF56tTd_xlyvF?pretty
{
  "name": "John Doe"
}

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐