ElasticSearch 删除所有数据
删除索引全部数据
POST /索引/_delete_by_query?pretty
{
"query" : {
"match_all" : {}
}
}
删除指定ID数据
POST /索引/_delete_by_query?pretty
{
"query" : {
"match" : {
"id": 1
}
}
}
ElasticSearch 删除所有数据
POST /索引/_delete_by_query?pretty
{
"query" : {
"match_all" : {}
}
}
POST /索引/_delete_by_query?pretty
{
"query" : {
"match" : {
"id": 1
}
}
}