【发布时间】:2020-06-26 02:55:03
【问题描述】:
我们的新展期指数刚刚展期。现在这个查询...
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"}}]
}
}
}
异常来自this code,看起来有一个allowAliasesToMultipleIndices 设置,但我一直找不到设置它的地方。
我们使用的是 Elastic 6.8。
【问题讨论】:
标签: elasticsearch alias rollover