https://github.com/indatawetrust/mongo-to-elastic
Elasticsearch transfer tool for MongoDB database
https://github.com/indatawetrust/mongo-to-elastic
elasticsearch mongodb transfer-data
Last synced: about 1 year ago
JSON representation
Elasticsearch transfer tool for MongoDB database
- Host: GitHub
- URL: https://github.com/indatawetrust/mongo-to-elastic
- Owner: indatawetrust
- License: mit
- Created: 2017-05-17T17:04:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T16:12:39.000Z (almost 9 years ago)
- Last Synced: 2025-05-05T19:19:16.669Z (about 1 year ago)
- Topics: elasticsearch, mongodb, transfer-data
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 29
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mongo-to-elastic
Elasticsearch transfer tool for MongoDB database. It is safer because every transaction is kept in a [promise queue].
## Install
```
npm install mongo-to-elastic -g
```
All collections are transferred unless the collection is defined. To define more than one collection;
```
mongo-to-elastic --db app -c user -c post
```
## Usage
```
Usage: mongo-to-elastic [options]
Options:
--mongo-host, --mh MongoDB host (default localhost)
--mongo-port, --mp MongoDB port (default 27017)
--database, --db MongoDB database
--collection, --c MongoDB collection
--elastic-host, --eh ElasticSearch host (default localhost)
--elastic-port, --ep ElasticSearch port (default 9200)
--concurrency, --con Promise concurrency (default 250)
--help Show help
```
[promise queue]: https://github.com/sindresorhus/p-queue