Contribute Us | Ask Question |

Put a Document into Index in ElasticSearch

Here we learn how to put a document into an index.
We can simply insert or put an document into particular index by using elasticsense browser plugin .

Below is the query to insert an document into elastic:
PUT /customer/order/2
"name":"sonu kumar",

Explaination of above query:
Here we put an document in customer index with mapping name is order and id is 2.
After running this query a document is created successfully in customer an index with record
Name : Sonu Kumar
order_size : 100