ElasticSearch删除数据插件delete-by-query
Posted wt645631686
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ElasticSearch删除数据插件delete-by-query相关的知识,希望对你有一定的参考价值。
在ElasticSearch2.0之后的版本中没有默认的delete-by-query,想使用此命令需要安装这个插件。
首先需要进入ES的目录
[[email protected] elasticsearch]# pwd
/usr/share/elasticsearch
# bin/plugin install delete-by-query -> Installing delete-by-query... Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/delete-by-query/2.4.1/delete-by-query-2.4.1.zip ... Downloading ...........DONE Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/delete-by-query/2.4.1/delete-by-query-2.4.1.zip checksums if available ... Downloading .DONE Installed delete-by-query into /usr/share/elasticsearch/plugins/delete-by-query
以上是关于ElasticSearch删除数据插件delete-by-query的主要内容,如果未能解决你的问题,请参考以下文章
Elasticsearch Java Api--DeleteByQuery
Elasticsearch教程 elasticsearch delete 删除数据(Java)
elasticsearch 5.x Delete By Query API(根据条件删除)