123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- = Groovy API
- include::../Versions.asciidoc[]
- [preface]
- == Preface
- This section describes the http://groovy-lang.org/[Groovy] API
- Elasticsearch provides. All Elasticsearch APIs are executed using a
- <<client,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
- {javaclient}[Java API] exposing it in a groovier
- manner. The execution options for each API follow a similar manner and
- covered in <<anatomy>>.
- [[maven]]
- === Maven Repository
- The Groovy API is hosted on
- http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22elasticsearch-groovy%22[Maven
- Central].
- For example, you can define the latest version in your `pom.xml` file:
- ["source","xml",subs="attributes"]
- --------------------------------------------------
- <dependency>
- <groupId>org.elasticsearch</groupId>
- <artifactId>elasticsearch-groovy</artifactId>
- <version>{version}</version>
- </dependency>
- --------------------------------------------------
- include::anatomy.asciidoc[]
- include::client.asciidoc[]
- include::index_.asciidoc[]
- include::get.asciidoc[]
- include::delete.asciidoc[]
- include::search.asciidoc[]
|