首先库里有两条测试数据
删除结果
- 命令:连接/索引/类型/执行命令语句
http://192.168.0.237:9100/_index/_type/_delete_by_query
- 执行类型下拉框选中post
- 查询语句,务必用这里的语句,修改match中的条件即可
{
"query": {
"bool": {
"must": [
{
"match_all": {
}
}
],
"must_not": [],
"should": []
}
}
}
根据查询条件删除查询出来的数据
{
"query": {
"bool": {
"must": [
{
"match": {
"_id": "10004"
}
}
],
"must_not": [],
"should": []
}
}
}
查询结果
1.命令: 连接/_index(索引)/_type(类型)/ruid(资料ruid)
http://ip:port/索引_index/_type/_id/
2.执行类型下拉框选中delete



