- ES內(nèi)置的REST接口
URL
/_aliases 獲取或者操作索引的別名
/index/_search 搜索指定索引下的數(shù)據(jù)
/index/ 查看指定所引導詳細信息
/index/type/ 創(chuàng)建或者操作 類型(表)
/index/_mapping 創(chuàng)建或者操作 mapping
/index/_settings 創(chuàng)建或者操作 設置(number_of_shards是不可更改的)
/index/_open 打開指定被關閉的索引
/index/_close 關閉指定索引
/index/_refresh 刷新索引-不保證寫入蒂培,使得新增內(nèi)容對搜索可見
/index/_flush 刷新索引-會出發(fā)lucene提交
- ES和數(shù)據(jù)庫對比
數(shù)據(jù)庫: database | index 索引庫
表: table | type 類型
行: row | document 文檔
字段: column | field 字段
- 訪問: