Whenever I try to perform a bulk import from CURL, I get an error 
stating: ActionRequestValidationException[Validation Failed: 1: no requests 
added

Can someone point out my mistake in this command?

$ curl -u username:password -XPOST http://my.es.com:9200/_bulk -d'
{"index":{"_index":"my_index_test","_type":"product","_id":"033fe3db-038f-11e3-a415-bc764e10976c"}}
{"api_id":"033fe3db-038f-11e3-a415-bc764e10976c","name":"tray","short_description":"<div>serve
 
fresh things with a fresh look</div>","long_description":"<div>serve fresh 
things with a fresh 
look</div>","price":19.5,"image_url":"https://s3.amazonaws.com/blah.jpg","barcodes":["CODE_128:tray","CODE_39:tray","MANUAL:tray","MANUAL:TRAY"]}
'

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/8c46092e-814f-4f92-ac8f-2a1772721cc8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to