1.0.4 • Published 8 years ago

mongo-elastic-transfer v1.0.4

Weekly downloads
22
License
-
Repository
github
Last release
8 years ago

mongo-elastic-transfer

NPM

Simple Node.js module for fast transferring data from MongoDB to Elastic.

Data are streamed from MongoDB and inserted as a bulk to MongeDB. Bulk size is configurable and should be considered based on data size. You can read more about bulk size in the official documentation https://www.elastic.co/guide/en/elasticsearch/guide/current/indexing-performance.html#_using_and_sizing_bulk_requests.

Usage

mongoElasticTransfer.transfer({
        esClient    : esClient,
        mClient     : mClient,
        index       : index,
        type        : type,
        collection  : collection,
        [preserveIds: preserveIds],
        [bulkSize   : bulkSize]
    }, callback);

esClient Instance of elasticsearch official module.

mClient Instance of mongodb official module.

index Elastic index name.

type Elastic type.

preserveIds Keeps the same ID as in MongoDB.

collection Mongo collection name.

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago