From the course: Elasticsearch Essential Training

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Adding documents to Elasticsearch

Adding documents to Elasticsearch - Elastic Stack Tutorial

From the course: Elasticsearch Essential Training

Adding documents to Elasticsearch

- [Deepak] Now our three indices has been created, customers, orders, and the products, but you can see that for customers and orders, we have a zero document count, and for products, we have just two documents. The power of the Elasticsearch lies in searching the data on a large data set. So let's just add some dummy data in all of these three indexes so that we can play with the power of the Elasticsearch and learn how we can find out the data from large data set. Let's just go and add the bulk data into the products index. For that, let's just go back to our Dev Tools. To do the bulk uploading. I'm just copy/pasting the query, which I have already written in our Exercise File. So let me bring that up. Now this is the query. You can see that the command is the POST command, and you have to give the name of the index, that is the products, and then _bulk. And then you can send the list of all the documents here in the JSON format and just say Done. Now you can see that we have loaded…

Contents