es查询的常见错误码
status : 406
加HTTP请求头: -H "Content-Type: application/json"
status:400
批量导⼊数据时,数据格式不正确
{"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to parse content to map"}],"type":"parse_exception","reason":"Failed to parse content to map","caused_by":{"type":"json_parse_exception","reason":"Unexpected character ('\"' (code 34)): was expecting comma to separate Object entries\n at [Source: line: 17, column: 18]"}},"status":400}[
数据格式不对第17⾏缺少“,”
status:404
no such index and[action.auto_create_index]  es存在索引配置策略。如禁⽌⾃动创建索引,允许⾃动创error parse new
建索引,或者部分限制可以创建索引            {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such
index","pe":"index_or_alias","resource.id":"kvdata","index_uuid":"_na_","index":"kvdata"}],"type":"index_not_found_exception","reason":"no such index","pe":"index_or_alias","resource.id":"kvdata","index_uuid":"_na_","index":"kvdata"},"status":404}
标识不存在索引,必须先创建索引: curl -XPUT "localhost:9200/lsl"
status:409
version conflict
版本冲突

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。