助力软件开发企业降本增效 PHP / java源码系统,只需一次付费,代码终身使用! 广告
# 检查健康 推荐使用一款模拟http请求的工具 firefox :httrequest chrome : postman , es 插件 Sense 官方指导地址:https://www.elastic.co/guide/en/elasticsearch/reference/current/_cluster_health.html http://localhost:9200/_cat/health?v 返回结果 : ![![]![](https://box.kancloud.cn/2016-07-13_5786652be97f0.png) status (red yellow green ) ## 创建索引 httpmethod :put ![](https://box.kancloud.cn/2016-07-13_5786652c06d93.png) http://localhost:9200/_cat/indices?v ![](https://box.kancloud.cn/2016-07-13_5786652c1d870.png) 状态 health yellow ? 创建索引 http://localhost:9200/movieinfo/type(类型)/id(索引id,如果不写,es会默认生成一个) http://localhost:9200/movieinfo/movie/1 ![](https://box.kancloud.cn/2016-07-13_5786652c30504.png) 查看索引内容 get方法 http://localhost:9200/movieinfo/movie/1 ![](https://box.kancloud.cn/2016-07-13_5786652dd76c1.png)