温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

ES-01 -ES内置的REST接口

发布时间:2020-07-23 18:39:15 来源:网络 阅读:2655 作者:海德堡绝尘 栏目:大数据

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

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI