invalid_index_name_exception: invalid_index_name_exception
Elasticsearch含义
给定的索引名不符合 Elasticsearch 命名规则。名称中包含无效字符或违反格式规则。
原因
包含大写字母、不允许的字符(\ / * ? " < > | 空格 , #)、名称以 _、- 或 + 开头、名称过长(超过 255 字节),或使用 . / ... 等保留名称。(以点开头的名称并未被禁止,但保留给隐藏/系统索引使用,会产生警告。)
解决方法
使索引名符合规则:只使用小写字母;避免禁用字符;名称不要以 _、- 或 + 开头,除系统/隐藏索引外不要使用以点开头的名称。名称长度保持在 255 字节以内。在应用中生成索引名时强制执行这些规则。
同一数据库的其他条目
- connect_transport_exceptionconnect_transport_exception
- repository_missing_exceptionrepository_missing_exception
- concurrent_snapshot_execution_exceptionconcurrent_snapshot_execution_exception
- 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 已过期)
- aliases_not_found_exceptionAliases missing(别名不存在)