settings_exception: Invalid settings(无效的设置)
Elasticsearch含义
由于给定的设置无效,操作被拒绝。在应用索引或集群设置时,设置名称、设置值或该设置能否在当前上下文中修改存在问题。
原因
未知/拼写错误的设置名称;值的类型错误或超出允许范围;试图在运行中的索引上修改只能在创建索引时设置的静态设置(例如 number_of_shards);或使用了已移除/已重命名的设置。
解决方法
对照文档校验设置名称和值。在运行中的索引上更新动态设置:PUT my-index/_settings {"index.number_of_replicas": 2}。静态设置(例如 number_of_shards)只能在创建时设置;修改需要 reindex。查看当前设置:GET my-index/_settings。
同一数据库的其他条目
- aliases_not_found_exceptionAliases missing(别名不存在)
- snapshot_missing_exceptionSnapshot is missing(快照不存在)
- index_template_missing_exceptionIndex template is missing(索引模板不存在)
- shard_not_found_exceptionShard not found(未找到分片)
- not_x_content_exceptionCompressor detection error / body is not valid content(压缩格式检测错误/请求体不是有效内容)
- document_source_missing_exceptionDocument source is missing(文档 source 不存在)
- node_not_connected_exceptionNode is not connected(节点未连接)