Pipe ndjson into elasticsearch.
Pipe ndjson into elasticsearch. Strems out the doc with the new _id.
This is really similar to the ndjson-to-couch module. But es has now slightly different semantics around the _id property not allowed to be in the doc. That is the main reason for the fork.
npm i ndjson-to-elasticsearch -g
cat tests/assets/example.njson | ndjson-to-elasticsearch http://localhost:9200/test/tweet