Lar*_*s P 5 alias rollover elasticsearch
我们的新展期指数刚刚展期。现在这个查询...
GET http://my.elastic/system-logs/_doc/7e8017d8-0cb8-4b9e-b021-b2a4b4ac71c7
...失败了:
"Alias [system-logs] has more than one indices associated with it [[system-logs-000002, system-logs-000001]], can't execute a single index op"
但做同样的事情_search效果很好:
GET http://my.elastic/system-logs/_search/
{
"query": {
"bool": {
"must": [{"term": {"_id": "a1906f52-3957-4f4b-9b40-531422e3a04e"}}]
}
}
}
Run Code Online (Sandbox Code Playgroud)
异常来自这段代码,看起来有一个allowAliasesToMultipleIndices设置,但我一直找不到设置它的地方。
我们使用的是 Elastic 6.8。
| 归档时间: |
|
| 查看次数: |
2547 次 |
| 最近记录: |