LoginSignup
2
3

More than 5 years have passed since last update.

Elasticsearchで条件指定削除

Posted at

Elasticsearchで条件指定して削除する方法

Delete By Query Pluginをインストール

sudo bin/plugin install delete-by-query

参考: https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugins-delete-by-query.html

削除を実行

curl -XDELETE 'http://localhost:9200/インデックス名/_query?q=検索条件'

参考: https://www.elastic.co/guide/en/elasticsearch/plugins/current/delete-by-query-usage.html

Delete By Query Pluginをアンインストール

sudo bin/plugin remove delete-by-query

用が終わったら消しておいた方が良いかもしれません

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3