How to get elastic search to play with MongoDb and node.js? How to get elastic search to play with MongoDb and node.js? elasticsearch elasticsearch

How to get elastic search to play with MongoDb and node.js?


1) either on your own server/VM/whatever.. or with a hosted service such as https://searchbox.io/

2) you can create a script to index your existing data and then index new data once its created, or use a river to index your current database.

3) ElasticSearch is a simple HTTP API, you can make your own requests using the 'http' module or simplify it with something like https://github.com/mikeal/request

you can also use a 3rd party library like https://github.com/phillro/node-elasticsearch-client


Searchly.com (Aka SearchBox.io)introduced a new feature crawlers includes MongoDB crawler.It fetches data from a given collection and syncs periodically to ElasticSearch. Check http://www.searchly.com/documentation/crawler-beta/


  1. You can host on your own server or use aws elasticsearch service or use elastic cloud provided by elasticsearch.
  2. Try any of the following three solutions:- i) Try using mongoosastic. NPM package ii) Use mongo-connector. iii) python script for indexing data to elasticsearch
  3. elasticsearch-js. The javascript client library