elasticsearch常用命令

Posted lwmp

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elasticsearch常用命令相关的知识,希望对你有一定的参考价值。

获取es的基本信息

curl localhost:9200

查看当前节点的所有 Index

curl -X GET ‘http://localhost:9200/_cat/indices?v‘

创建一个Index

curl -X PUT ‘localhost:9200/weather‘

删除一个Index

curl -X DELETE ‘localhost:9200/weather‘

未完待续
http://www.ruanyifeng.com/blog/2017/08/elasticsearch.html
https://www.jianshu.com/p/41a506acc643



以上是关于elasticsearch常用命令的主要内容,如果未能解决你的问题,请参考以下文章