我正在尝试按照 Elasticsearch 教程(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”不被识别为内部或外部命令、可操作程序或批处理文件。
最佳答案
试试这个:
POST /<indexName>/<type>/_bulk
复制文件accounts.json的内容
然后运行。
关于windows - Elasticsearch - 在 Windows 中使用 Sense Web 插件批量插入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35677626/