index_not_found_exception: index_not_found_exception: no such index [index_name] (HTTP 404)(索引不存在)
Elasticsearch含义
所请求的索引(或别名)不存在。由于找不到给定名称的索引,操作以 HTTP 404 被拒绝。
原因
索引从未创建、已被删除、索引/别名名称拼写错误、客户端连接到了错误的环境(集群),或在禁用 action.auto_create_index 时尝试写入不存在的索引。
解决方法
列出现有索引:GET _cat/indices?v。核实名称和别名:GET _alias。创建索引:PUT /index-name(附带所需的 mappings/settings),或通过 index template 配置自动创建。如果需要自动创建,检查 action.auto_create_index 设置。确认没有连接到错误的集群。
同一数据库的其他条目
- too_many_clausestoo_many_clauses: maxClauseCount is set to 1024 (query contains too many clauses)(查询包含的子句过多)
- version_conflict_engine_exceptionversion_conflict_engine_exception: [_doc][id]: version conflict, current version [x] is different than the one provided [y] (HTTP 409)(版本冲突,当前版本与提供的版本不同)
- document_missing_exceptiondocument_missing_exception: [_doc][id]: document missing(文档不存在)
- resource_already_exists_exceptionresource_already_exists_exception: index [index_name/uuid] already exists (HTTP 400)(索引已存在)
- cluster_health_redcluster health status: RED / unassigned shards(集群健康状态:RED / 未分配的分片)
- no_shard_available_action_exceptionno_shard_available_action_exception: No shard available for [...](没有可用的分片)
- es_rejected_execution_exceptiones_rejected_execution_exception: rejected execution of ... on ... (queue capacity ...) (HTTP 429)(线程池队列已满,执行被拒绝)