This section describes the Groovy API Elasticsearch provides. All Elasticsearch APIs are executed using a GClient, and are completely asynchronous in nature (they either accept a listener, or return a future).

The Groovy API is a wrapper on top of the Java API exposing it in a groovier manner. The execution options for each API follow a similar manner and covered in API Anatomy.

Maven Repositoryedit

The Groovy API is hosted on Maven Central.

For example, you can define the latest version in your pom.xml file: