0.1.5 • Published 6 years ago
rethinkdb-elasticsearch-sync v0.1.5
rethinkdb-elasticsearch-sync
Command-line utility that synchronizes RethinkDB database into an ElasticSearch service.
Characteristics:
- Listens to changes on all tables on a RethinkDB database.
 - Supports the creation of new tables.
 - Sends the document as is to Elastic Search.
 - Maps a table in RethinkDB to an index on ElasticSearch.
 - Outputs logs in JSON format
 
Install
$ npm install rethinkdb-elasticsearch-syncRun
$ rethinkdb-elasticsearch-syncEnvironment variables
RethinkDB access options:
RETHINKDB_HOSTRETHINKDB_PORTRETHINKDB_DBRETHINKDB_USERRETHINKDB_PASSWORD
ElasticSearch options:
ELASTICSEARCH_URIELASTICSEARCH_USERELASTICSEARCH_PASSWORDELASTICSEARCH_API_KEY
Test
To run tests locally you need Docker-compose installed (so that it starts RethinkDB and ElasticSearch and runs the tests inside a container connected to those two).
$ npm testLicense
MIT