cerate 乙個文件
使用http put user/_create/1 建立,uri 中顯示指定_create,此時如果該id的文件已經存在,操作失敗
get 乙個文件
找不到文件,返回 404
index文件
bulk api
可以在uri中指定index,也可以在請求的payload中進行
操作中單條操作失敗,並不會影響其他的操作
返回結果包括了每一條操作執行的結果
批量讀取- mget
get /_mget
批量查詢 - msearchpost users/_mserch
常見錯誤返回
問題原因
無法連線
網路故障或集群掛了
連線無法關閉
網路故障或節點出錯
429集群過於繁忙
4xx請求體格式有錯
500集群內部錯誤
ES基礎(三)文件的基本 CRUD 與批量操作
注意 es 6.5.1 為 post users type名 1 update doc create document.指定id。如果id已經存在,報錯 put users doc 1?op type create create document.指定 id 如果已經存在,就報錯 put users...
es 文件基本CURD與批量操作
get users search 不存在結果 type index not found exception reason no such index users resource.type index or alias resource.id users index uuid na index us...
Hive的基本操作 CRUD
建立資料庫 create datebase if not exists userdb 或create schema userdb 檢視資料庫 show datebases 刪除資料庫 drop datebase if exists userdb 建立資料庫表 create temporary ext...