Delete Index
- 删除检索 twitter
DELETE twitter
Delete By Id
- deletes the JSON document from an index called twitter, under a type called _doc, with id 1:
DELETE /twitter/_doc/1
Delete By Query
通过条件查找符合条件的json文件并对进行delete
其中, twitter为index(检索名)
POST twitter/_delete_by_query
{
"query": {
"match": {
"message": "some message"
}
}
}
POST twitter/_delete_by_query
{
"query": {
"range": {
"prd_dt": {
"from":"2020-09-08",
"to":"2020-09-10"
}
}
}
}