Elasticsearch-head-【增删改查2】

【删除数据】
【第一步】: 先通过基本询查找到数据,获取到原始JSON


【第二步】:拿到原始的JSON再通过复合查询查到数据;
[格式]:
http://IP:9200/wangxl/performance_20200921/performance/_search
[方式]:
POST
[数据]:
{"query":{"bool":{"must":[{"term":{"ci_name.keyword":"596377fafb294750ab500984db545355"}}],"must_not":[],"should":[]}},"from":0,"size":1000,"sort":[],"aggs":{}}


【第三步】:调整语句,执行删除
[格式]:
http://IP:9200/wangxl/performance_20200921/performance/_delete_by_query
[方式]:
POST
[数据]:
{
"query": {
"bool": {
"must": [
{
"term": {
"ci_name.keyword": "596377fafb294750ab500984db545355"
}
}
],
"must_not": [],
"should": []
}
}
}

再次查询,数据已删除