Maven Repositoryedit

The high-level Java REST client is hosted on Maven Central. The minimum Java version required is 1.8.

The High Level REST Client is subject to the same release cycle as Elasticsearch. Replace the version with the desired client version.

Maven configurationedit

Here is how you can configure the dependency using maven as a dependency manager. Add the following to your pom.xml file:

<dependency>
    <groupId>org.elasticsearch.client</groupId>
    <artifactId>elasticsearch-rest-high-level-client</artifactId>
    <version>5.6.1</version>
</dependency>

Gradle configurationedit

Here is how you can configure the dependency using gradle as a dependency manager. Add the following to your build.gradle file:

dependencies {
    compile 'org.elasticsearch.client:elasticsearch-rest-high-level-client:5.6.1'
}