Elasticsearch: Bulk request throws error in Elasticsearch 6.1.1

前端 未结 16 2053
日久生厌
日久生厌 2020-12-16 11:35

I recently upgraded to Elasticsearch version 6.1.1 and now I can\'t bulk index documents from a JSON file. When I do it inline, it works fine. Here are the contents of the d

16条回答
  •  旧巷少年郎
    2020-12-16 12:20

    Press Enter end of the line inside the JSON file and run the command again.

    curl -H "Content-Type: application/x-ndjson" -XPOST 'localhost:9200/customers/personal/_bulk?pretty&refresh' --data-binary @"generated.json"
    

提交回复
热议问题