number_format_exception: number_format_exception
Elasticsearch含义
本应为数值的值无法转换为数字。在字段或参数需要数字的地方提供了无效/非数字的字符串。
原因
向数值(integer/long/double)字段发送了非数字文本、尝试将空字符串转换为数字、小数格式错误,或输入数据与 mapping 不兼容。
解决方法
向该字段发送有效的数值。在索引前校验/转换源数据。空值使用 null 或省略该字段。检查 mapping 中的 coerce 设置和字段类型。使用句点作为小数分隔符。
同一数据库的其他条目
- unavailable_shards_exceptionunavailable_shards_exception
- query_shard_exceptionquery_shard_exception
- script_exceptionscript_exception
- connect_transport_exceptionconnect_transport_exception
- repository_missing_exceptionrepository_missing_exception
- concurrent_snapshot_execution_exceptionconcurrent_snapshot_execution_exception
- invalid_index_name_exceptioninvalid_index_name_exception