You will make a POST request for /_bulk
Your payload will conform to the following format, where \n is the newline character.
action_and_meta_data\n optional_source\n action_and_meta_data\n optional_source\n ...
Make sure your json is not printed.
Available actions are index , create , update and delete .
Bulk upload example
To answer your question, you just want voluminous data to be loaded into your index.
{ "create" : { "_index" : "test", "_type" : "type1", "_id" : "3" } } { "field1" : "value3" }
The first line contains the action and metadata. In this case, we call create . We will enter a document of type type1 in an index called test with a manually assigned identifier of 3 (instead of automatically generating elasticsearch).
The second line contains all the fields in your mapping, which in this example are simply field1 with value3 .
You just concatenate as much as you want to insert into your index.
source share