IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Maven Repository
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Maven Repository
editThe low-level Java REST client is hosted on
Maven
Central. The minimum Java version required is 1.7.
The low-level REST client is subject to the same release cycle as
Elasticsearch. Replace the version with the desired client version, first
released with 5.0.0-alpha4. There is no relation between the client version
and the Elasticsearch version that the client can communicate with. The
low-level REST client is compatible with all Elasticsearch versions.
Maven configuration
editHere 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-client</artifactId>
<version>6.1.4</version>
</dependency>
Gradle configuration
editHere 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-client:6.1.4'
}