Elasticsearch is a distributed, scalable nosql search server built on lucene. It can use plugins(rivers) to hook into changes made on other databases such ascouchdb

There is currently no “official” river for mongodb and elasticsearch but aparo has written one and it is available on hit github repo.

Here is how to go about installing it.

  • Download the mongodb river HERE
  • unzip into $ES_HOME/plugins/mongodb_river/
  • restart elasticsearch
  • run the following to index a collection on elasticsearch:

    !/bin/bash curl -X PUT localhost:9200/_river/mongodb/_meta -d ‘{ “type”:”mongodb”, “mongodb”:{ “db”:”DATABASE_NAME”, “collection”:”COLLECTION”, “index”:”ES_INDEX_NAME” } }’


Matt Reid

Lead Software Architect. Java, Node.js and TypeScript enthusiast.

drei01 Matthew_Reid