ES中删除指定记录中的一个字段
需求描述
项目中的所有客户信息都保存在ES中,由于以前的接口调用链太深,修改起来,你懂的,所以决定重新写一个删除字段的方法
方法尽量通用
实现
依赖
dx.commons
dx-commons-elasticsearch
1.0.0
org.elasticsearch
elasticsearch
5.6.3
org.elasticsearch.client
transport
5.6.3
org.elasticsearch.client
elasticsearch-rest-high-level-client
5.6.3
```
2. JSON
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "asst_customers_v1",