I am running this commond from curl on elasticsearch 6.0 version
curl -XPOST "localhost:9200/shakespeare/doc/_bulk?pretty" -H "Content-Type:application/json" -d @shakespeare.json
Getting below error.
"reason" : "The bulk request must be terminated by a newline [\n]"
I used the shakespeare.json shared via https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html
I also see mapping needs modification on this page. Any help on how to load sample data. I am completely stuck in here.
If i run this command with --data-binary then it still throws error. What i learnt is -> if i keep index without mapping and then insert, it works... so probably we need to update mapping document in the above said url.