Installationedit

Requirements:

  • Java 8 or later.
  • A JSON object mapping library to allow seamless integration of your application classes with the Elasticsearch API. The Java client has support for Jackson or a JSON-B library like Eclipse Yasson.

Releases are hosted on Maven Central. If you are looking for a SNAPSHOT version, the Elastic Maven Snapshot repository is available at https://snapshots.elastic.co/maven/.

Installation in a Gradle project by using Jacksonedit

dependencies {
    implementation 'co.elastic.clients:elasticsearch-java:7.16.2'
    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
}

Installation in a Maven project by using Jacksonedit

In the pom.xml of your project, add the following repository definition and dependencies:

<project>

  <dependencies>
    <dependency>
      <groupId>co.elastic.clients</groupId>
      <artifactId>elasticsearch-java</artifactId>
      <version>7.16.2</version>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>2.12.3</version>
    </dependency>
  </dependencies>

</project>