操作索引
1 添加 put
http://192.168.1.1/index
index 表示索引名稱
2 查詢 get
http://192.168.1.1/index
3 關閉 post
http://192.168.1.1/index /_close
_close 關鍵字 關閉索引
4 打開 post
http://192.168.1.1/index /_open
5 刪除 delete
http://192.168.1.1/index
操作映射
1 添加映射
創建索引並添加映射
添加字段
2 查詢映射
操作文檔
1.添加文檔
2 查詢文檔
查詢所有文檔
3 修改文檔
id 2 存在則修改,不存在則添加
4.刪除文檔
分詞器