@liqiqiang/db-to-es
v1.0.0
Published
Sync Mongo Data to ES
Downloads
6
Readme
Sync Mongo Data to ES
Sync Mongo(Mongoose) data to ES user bulk api.
Install
npm i @liqiqiang/db-to-es --save
Usage
const ToEs = require('@liqiqiang/db-to-es');
const cursor = Movie.find({}).cursor();
await new ToEs(cursor, 'es_index_name', 'es_type').start();