post index/type/_delete_by_query
test/book/_delete_by_query
{
"query": {
"match": {
"bookId":2
}
}
}
查询 bookId=2 然后全部删除
全部删除
{
"query": {
"match_all": {}
}
}
post index/type/_delete_by_query
test/book/_delete_by_query
{
"query": {
"match": {
"bookId":2
}
}
}
查询 bookId=2 然后全部删除
全部删除
{
"query": {
"match_all": {}
}
}