Skip to main content

Using Elasticsearch

  • Chapter
Book cover Pro Couchbase Development

Abstract

Elasticsearch is a real-time, full-text search and analytics engine based on RESTful API using JSON over HTTP. Some of the features of Elasticsearch are distributed, highly available, document-oriented, and schema-free. Couchbase Plugin for Elasticsearch makes it feasible to index and search data stored in Couchbase Server in real-time using Elasticsearch. With the plugin, data streams from Couchbase Server to Elasticsearch in real-time. Couchbase data gets indexed in Elasticsearch and may be queried using a RESTful API. To make use of the plugin, two clusters are required to be created: an Elasticsearch cluster and a Couchbase cluster. The plugin is installed in the Elasticsearch cluster. Using the Cross Datacenter Replication (XDCR) in Couchbase Server, the Couchbase data is replicated and streamed to Elasticsearch cluster. The Elasticsearch cluster may be queried to get results as document IDs. The document IDs may be used to retrieve the document from Couchbase Server directly. The Couchbase Server data is kept in sync with the Elasticsearch cluster index. Any changes in the Couchbase data are streamed in real-time to Elasticsearch.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Deepak Vohra

About this chapter

Cite this chapter

Vohra, D. (2015). Using Elasticsearch. In: Pro Couchbase Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1434-3_7

Download citation

Publish with us

Policies and ethics