npm's personal messenger

    mongo-elasticsearch

    1.0.0 • Public • Published

    Mongo-Elasticsearch

    Transfer document collections from MongoDB into Elasticsearch indexes safely and easily.

    Build Status

    Branch Build Status Version Code Quality
    master build status npm version code_climate
    development build status 1.0.1

    Install

    npm install mongo-elasticsearch

    Usage

    var mongo-elasticsearch = require('mongo-elasticsearch');
    var t = new mongo-elasticsearch.Transfer({
      esOpts: {
        host: 'localhost:9200',
        log: 'trace'
      },
      esTargetType: 'tweet',
      esTargetIndex: 'twitter',
      mongoUri: 'mongodb://abc123:def456@myhost.com:27747/dbname',
      mongoSourceCollection: 'tweets'
    });
     
    t.start().then(function(results) {
      console.log('Exiting');
      console.log(results);
      process.exit();
    });

    Install

    npm i mongo-elasticsearch

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • omardelarosa