1.通过Delete命令删除索引数据
POST
http://{{es_ip}}:9200/user/_doc/_delete_by_query
{
"query":{
"bool":{
"must":[
{"term":{"dataType": ""}},
{"term":{"createdBy": "SYSTEAM"}}
]
}
}
}
2.删除后磁盘空间实际上并没有得到释放,需要再次执行命令操作
POST
http://{{es_ip}}:9200/user/_forcemerge?only_expunge_deletes=true