I have been looking for a definite answer but couldn't find one.
The java bulk api example given expects us to write individual docs into index/type/id.
How to use it to insert data directly from json file?
My json file is as follows:
{ "index" : { "_index" : "test", "_type" : "type1", "_id" : "1" } }
{ "field1" : "value1" }