Using the CouchDB river

CouchDB is a NoSQL data store that stores data in the JSON format, similar to ElasticSearch. It can be queried with the map/reduce task and provides the REST API, so every operation can be done via HTTP API calls.

Using ElasticSearch to index and search CouchDB data is very handy, as it extends the CouchDB data store with Lucene's search capabilities.

Getting ready

You will need a working ElasticSearch cluster and a working CouchDB server to connect to.

How to do it...

In order to use the CouchDB river, perform the following steps:

  1. First, you need to install the CouchDB river plugin, which is available on GitHub (https://github.com/elasticsearch/elasticsearch-river-couchdb), and is maintained by the ElasticSearch company. You ...

Get ElasticSearch Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.