按照官网的示例 导入数据 三个json格式数据文件 shakespeare.json, accounts.json, logs.jsonl
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/_bulk?pretty' --data-binary @logs.jsonl
网上搜索没有找到解决方式
"error" : "Content-Type header [application/x-www-form-urlencoded] is not supported",
"status" : 406