Let's ingest all the documents in the file sample.json at once using the following command:
curl -H 'Content-Type: application/json' -XPUT 'localhost:9200/my_index/customer/_bulk?pretty&refresh' --data-binary "@sample.json"
Let's verify all the records using our favorite browser. It will show all the three records:
http://localhost:9200/my_index/_search