aliases_not_found_exception: Aliases missing(别名不存在)
Elasticsearch含义
要操作的别名不存在。通常在删除或操作一个不存在的别名时返回。
原因
别名拼写错误;别名之前已被删除;或 _aliases API 中的 remove 操作指定了从未关联的别名。通配符模式没有匹配到任何别名时也会出现。
解决方法
列出现有别名:GET _alias,或针对特定索引 GET my-index/_alias。用正确的名称重试操作。编写删除脚本时,使其在别名不存在时不会失败;在 _aliases 批量操作中有条件地处理各项操作。要以原子方式切换别名,在单个 _aliases 请求中同时使用 add 和 remove。
同一数据库的其他条目
- resource_not_found_exceptionresource_not_found_exception
- process_cluster_event_timeout_exceptionprocess_cluster_event_timeout_exception
- search_context_missing_exceptionNo search context found for id (scroll expired)(找不到该 id 的搜索上下文,scroll 已过期)
- snapshot_missing_exceptionSnapshot is missing(快照不存在)
- index_template_missing_exceptionIndex template is missing(索引模板不存在)
- settings_exceptionInvalid settings(无效的设置)
- shard_not_found_exceptionShard not found(未找到分片)