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.
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” } }’