elasticstream

elasticsearch streaming indexer

npm install elasticstream
4 downloads in the last month

elasticstream

Streaming elasticsearch indexers.

Usage

Write document with ID maciejmalecki to index twitter, type user:

var elasticstream = require('elasticstream'),
    stream = elasticstream({ index: 'twitter', type: 'user'});

stream.write({
  id: 'maciejmalecki',
  doc: {
    name: 'Maciej Malecki'
  }
});
stream.end();
npm loves you