elasticsearch運維經常使用命令

查詢

curl -u USER:PASS http://IP:9200/INDEXNAME/_search -d '{
  "query": {
    "match_all": {}
  }
}'| python -m json.tool

刪除索引

elasticsearch的plugin使用

  • 安裝
    sudo bin/elasticsearch-plugin install [plugin_name]
  • 查看列表
    sudo bin/elasticsearch-plugin list
  • 卸載
    sudo bin/elasticsearch-plugin remove [pluginname]
相關文章
相關標籤/搜索