我正在使用引數索引 = "*" 的 GetIndexRequest。
val request = GetIndexRequest()
request.indices("*")
val response = client.indices()[request, RequestOptions.DEFAULT]
但是我收到了一個警告(從 ES6 遷移到 ES7):
this request accesses system indices: [.kibana], but in a future major version, direct access to system indices will be prevented by default
GetIndexRequest 必須顯示我的所有索引(它可以沒有系統索引)。
我嘗試將請求型別設定為“打開”,但這不起作用。
uj5u.com熱心網友回復:
這只是一個警告,僅意味著在未來版本 (ES 8.x) 中,請求*將不再回傳系統索引。因此,如果您不依賴當前行為,則可以隨意忽略此警告。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/375223.html
標籤:弹性搜索
