elastic / stream2es

Stream data into ES (Wikipedia, Twitter, stdin, or other ESes)
355 stars 62 forks source link

bulk API compatible file #63

Open shantanuo opened 8 years ago

shantanuo commented 8 years ago

Standard bulk API expects 2 lines and I generated a file with that format. stream2es added all the 4 lines whereas only 2 records should be added.

DELETE /test PUT /test

PUT /_bulk { "index" : { "_index" : "test", "_type" : "type1", "_id" : "1" }} { "field1" : "value1" } { "create" : { "_index" : "test", "_type" : "type1", "_id" : "3" } } { "field1" : "value3" }

Is there an option to specify this?