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