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
            版本沖突                        
 
 
 
 
 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM