将customer的值赋值为固定的值

POST log_info/_update_by_query
{"query":{"bool":{"filter":[{"range":{"createTime":{"from":"2021-03-17T00:00:00.000Z",
"to":"2021-03-17T23:59:59.000Z","include_lower":true,"include_upper":true,"boost":1.0}}},{"query_string":{"default_field":"systemCd.keyword","query":"test"}}],"adjust_pure_negative":true,"boost":1.0}},"script":{"inline": "ctx._source['customer'] = 'zhangsan01'"},"track_total_hits":2147483647}

将customer的值赋值为loginName的值

POST log_info/_update_by_query
{"query":{"bool":{"filter":[{"range":{"createTime":{"from":"2021-03-17T00:00:00.000Z",
"to":"2021-03-17T23:59:59.000Z","include_lower":true,"include_upper":true,"boost":1.0}}},{"query_string":{"default_field":"systemCd.keyword","query":"test"}}],"adjust_pure_negative":true,"boost":1.0}},"script":{"inline": "ctx._source['customer'] = ctx._source['loginName']"},"track_total_hits":2147483647}

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2021-08-28
  • 2022-12-23
  • 2021-12-08
  • 2022-01-04
  • 2021-06-07
  • 2022-01-01
猜你喜欢
  • 2021-07-05
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2021-09-30
  • 2022-12-23
相关资源
相似解决方案