Bulk indexing data file without providing id using by CURL?
Sorry but I don't understand.
If you don't specify an _id
on a document in the bulk request, one will be auto-generated.
You're right but it's necessary to define index and type. Is there any way to index json data file without any header ?
{ "index" : { "_index" : "My_index", "_type" : "My_type"} }
With a bulk request you can hit /MyIndex/MyType/_bulk
but you still have to specify the action (index
). There is no getting around that.