2013-08-29 01:24:34 +02:00
|
|
|
= Groovy API
|
2013-09-13 11:23:37 +02:00
|
|
|
:ref: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current
|
|
|
|
:java: http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current
|
2013-08-29 01:24:34 +02:00
|
|
|
|
|
|
|
[preface]
|
|
|
|
== Preface
|
|
|
|
|
|
|
|
This section describes the http://groovy.codehaus.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
|
2013-09-03 16:15:28 +02:00
|
|
|
{java}[Java API] exposing it in a groovier
|
2013-08-29 01:24:34 +02:00
|
|
|
manner. The execution options for each API follow a similar manner and
|
|
|
|
covered in <<anatomy>>.
|
|
|
|
|
2013-09-03 16:15:07 +02:00
|
|
|
|
2013-09-25 10:17:40 -06:00
|
|
|
[[maven]]
|
2013-09-03 16:28:44 +02:00
|
|
|
=== Maven Repository
|
2013-08-29 01:24:34 +02:00
|
|
|
|
|
|
|
The Groovy API is hosted on
|
|
|
|
http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22elasticsearch-client-groovy%22[Maven
|
|
|
|
Central].
|
|
|
|
|
|
|
|
For example, you can define the latest version in your `pom.xml` file:
|
|
|
|
|
|
|
|
[source,xml]
|
|
|
|
--------------------------------------------------
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
2014-05-14 12:08:02 +02:00
|
|
|
<artifactId>elasticsearch-lang-groovy</artifactId>
|
2013-08-29 01:24:34 +02:00
|
|
|
<version>${es.version}</version>
|
|
|
|
</dependency>
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
include::anatomy.asciidoc[]
|
|
|
|
|
|
|
|
include::client.asciidoc[]
|
|
|
|
|
|
|
|
include::index_.asciidoc[]
|
|
|
|
|
|
|
|
include::get.asciidoc[]
|
|
|
|
|
|
|
|
include::delete.asciidoc[]
|
|
|
|
|
|
|
|
include::search.asciidoc[]
|
|
|
|
|
|
|
|
include::count.asciidoc[]
|
|
|
|
|