我正在尝试按照弹性搜索教程(https://www.elastic.co/guide/en/kibana/current/getting-started.html)使用_bulk api导入accounts.json数据。我正在为此任务使用 google-chrome 的Sense插件。
当我将 url 粘贴到curl -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json
Sense 上时,它会转换为POST /bank/account/_bulk?pretty
.
这里的解决方案:Kibana: Cant import Shakespeare.json on Sense Web Plugin说,要使用CURL命令。但在 Windows 上,curl 命令无法识别。
curl -XPUT localhost:9200/_bulk --data-binary @shakespeare.json
'curl' is not recognized as an internal or external command, operable program or batch file.