The Groovy API is no longer actively maintained or supported.
Preface
editPreface
editThis 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 Repository
editThe Groovy API is hosted on Maven Central.
For example, you can define the latest version in your pom.xml
file:
<dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch-groovy</artifactId> <version>${es.version}</version> </dependency>