由于elasticsearch-5.6.1不支持type直接删除,只能删除数据。

执行命令:

curl -H "Content-Type: application/json" -XPOST "http://localhost:9200/test_index/test_type/_delete_by_query?conflicts=proceed&pretty" -d '
{
"query": {
"match_all": {}
}
}'

即可删除test_index索引下type为test_type中的所有数据。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2021-11-14
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2021-05-24
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案