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: org.elasticsearch.common.compress.DeflateCompressor$1@36fb1129; line: 17, column: 18]"}},"status":400}[
            数据格式不对  第17行缺少“,”
        
                
 
status:404
            no such index and[action.auto_create_index]   es存在索引配置策略。如禁止自动创建索引,允许自动创建索引,或者部分限制可以创建索引
 
            {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"kvdata","index_uuid":"_na_","index":"kvdata"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"kvdata","index_uuid":"_na_","index":"kvdata"},"status":404}
            标识不存在索引,必须先创建索引: curl -XPUT "localhost:9200/lsl"
 
status:409
            version conflict
            版本冲突                        
 
 
 
 
 
 
posted @ 2020-12-19 22:28  dos_hello_world  阅读(3653)  评论(0)    收藏  举报