Elasticsearch REST JAVA API

Elasticsearch 5 provides low level client api’s to communicate with Elasticsearch Cluster over HTTP by JAVA. Because of REST services and JSON able to communicate with all version of Elasticseach and across firewall also.

Elasticsearch REST Client sent http requests internally by using Apache Http Async Client.

In case of version change on Elasticsearch Cluster no need to change for client and will not impact any communication.

Initial Release Version : 5.0.0-alpha4

Elasticsearch REST Features

  • Keep connection persistent.
  • Logged request and response by Elasticsearch Rest API.
  • Load balancing across all available nodes.
  • Failover incase of node fail and upon specific response codes.
  • Provide sniffing to discovery of clusters node.
  • Minimum Dependencies.


Elasticsearch Rest required minimum Java version is 1.7

Elasticsearch REST Java API Configuration

 Maven Configuration

Add below dependency in pom.xml file to import all library.


Gradle Configuration

Add below dependency in build.gradle file to import all library.

dependencies {   compile 'org.elasticsearch.client:rest:5.1.2'}

Read More on Elasticsearch REST


Integrate Filebeat, Kafka, Logstash, Elasticsearch and Kibana


About Saurabh Gupta

My Name is Saurabh Gupta, I have approx. 11 Year of experience in Information Technology World manly in Java/J2EE. During this time I have worked with multiple organization with different client, so many technology, frameworks etc.
This entry was posted in Elasticsearch, REST and tagged , , . Bookmark the permalink.

5 Responses to Elasticsearch REST JAVA API

  1. Pingback: Elasticsearch REST JAVA Client to get Index Details List | Facing Issues On IT

  2. Pingback: Elasticsearch REST JAVA Client for Cluster Detail | Facing Issues On IT

  3. Pingback: Elasticsearch REST Response Handling | Facing Issues On IT

  4. Pingback: Elasticsearch REST Synchronous and Asynchronous performRequest APIs | Facing Issues On IT

  5. Pingback: Elasticsearch REST Java Connection Client | Facing Issues On IT

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s