Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lqqyt2423/db-to-es

Sync Mongo(Mongoose) data to ES user bulk api.
https://github.com/lqqyt2423/db-to-es

Last synced: about 1 month ago
JSON representation

Sync Mongo(Mongoose) data to ES user bulk api.

Awesome Lists containing this project

README

        

Sync Mongo Data to ES
==========

Sync Mongo(Mongoose) data to ES user bulk api.

## Install

```bash
npm i @liqiqiang/db-to-es --save
```

## Usage

```javascript
const ToEs = require('@liqiqiang/db-to-es');
const cursor = Movie.find({}).cursor();

await new ToEs(cursor, 'es_index_name', 'es_type').start();
```