1. 程式人生 > >ES-01 -ES內置的REST接口

ES-01 -ES內置的REST接口

es

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

技術分享圖片


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接口