I am trying to import shakespeare.json as per elastic search tutorial.
[Environment]
You should not do this in Sense, but simply from the command line
curl -XPUT localhost:9200/_bulk --data-binary @shakespeare.json
Make sure to point to the correct path of the shakespeare.json
file if it is not located in the directory you're in.
curl -XPUT localhost:9200/_bulk --data-binary @/path/to/shakespeare.json
UPDATE
If you run on Windows and you don't have the cURL command present, you can download cURL at https://curl.haxx.se/download.html
In Latest ElasticSearch 6, to populate the sharespeare_6.0.json, the following is the curl command
curl -H Content-Type:application/x-ndjson -XPUT localhost:9200/shakespeare/doc/_bulk --data-binary @shakespeare_6.0.json