blob: 87f9a73e21c220647c7b110fe0a37bb988f4dd70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
= Groovy API
:ref: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current
:java: http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current
[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
{java}[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-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>
<artifactId>elasticsearch-client-groovy</artifactId>
<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[]
|