资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

ES-01-ES内置的REST接口

1. ES内置的REST接口

URL

/_aliases 获取或者操作索引的别名
/index/_search 搜索指定索引下的数据

网站建设哪家好,找创新互联!专注于网页设计、网站建设、微信开发、小程序开发、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了日土免费建站欢迎大家使用!


/index/ 查看指定所引导详细信息
/index/type/ 创建或者操作 类型(表)
/index/_mapping 创建或者操作 mapping
/index/_settings 创建或者操作 设置(number_of_shards是不可更改的)


/index/_open 打开指定被关闭的索引
/index/_close 关闭指定索引
/index/_refresh 刷新索引-不保证写入,使得新增内容对搜索可见
/index/_flush 刷新索引-会出发lucene提交

2. ES和数据库对比


数据库: database | index 索引库
表: table | type 类型
行: row | document 文档
字段: column | field 字段

3. 访问:

http://localhost:9200

ES-01 -ES内置的REST接口


ES5.3

  1. Cluster Health
    GET /_cat/health?v

  2. nodes:
    _cat/nodes?v
  3. health
    _cat/health?v
  4. indices
    _cat/indices?v

ES5.2安装

ERROR: bootstrap checks failed
http://blog.csdn.net/cardinalzbk/article/details/54924511


ES5.3安装

  1. ips:

    192.168.61.141
    192.168.61.142
    192.168.61.143

  2. ssh免密登录设置-略
  3. sudo service iptalbes stop
  4. df -h /export 查看磁盘使用率
  5. 配置解释:

    cluster.name可以确定你的集群名称,当你的elasticsearch集群在同一个网段中elasticsearch会自动的找到具有相同cluster.name的elasticsearch服务. 所以当同一个网段具有多个elasticsearch集群时cluster.name就成为同一个集群的标识

http://www.cnblogs.com/xing901022/p/6030296.html
http://www.cnblogs.com/xing901022/p/6591260.html
http://www.cnblogs.com/zklidd/p/6433123.html
*http://www.cnblogs.com/xing901022/p/6591260.html
https://endymecy.gitbooks.io/elasticsearch-guide-chinese/content/getting-started/basic-concepts.html
http://www.cnblogs.com/hujihon/p/5656981.html
http://www.th7.cn/Program/java/201612/1049660.shtml
http://blog.csdn.net/opensure/article/details/47617437
http://www.cnblogs.com/sunxucool/p/3799190.html


当前名称:ES-01-ES内置的REST接口
分享路径:http://cdkjz.cn/article/gogich.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220