Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lqqyt2423/db-to-es
- Owner: lqqyt2423
- Created: 2018-11-27T08:11:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T08:12:51.000Z (about 6 years ago)
- Last Synced: 2024-11-16T12:52:45.676Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
```