index.asciidoc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. = Groovy API
  2. :ref: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current
  3. :java: http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current
  4. [preface]
  5. == Preface
  6. This section describes the http://groovy.codehaus.org/[Groovy] API
  7. elasticsearch provides. All elasticsearch APIs are executed using a
  8. <<client,GClient>>, and are completely
  9. asynchronous in nature (they either accept a listener, or return a
  10. future).
  11. The Groovy API is a wrapper on top of the
  12. {java}[Java API] exposing it in a groovier
  13. manner. The execution options for each API follow a similar manner and
  14. covered in <<anatomy>>.
  15. [[maven]]
  16. === Maven Repository
  17. The Groovy API is hosted on
  18. http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22elasticsearch-client-groovy%22[Maven
  19. Central].
  20. For example, you can define the latest version in your `pom.xml` file:
  21. [source,xml]
  22. --------------------------------------------------
  23. <dependency>
  24. <groupId>org.elasticsearch</groupId>
  25. <artifactId>elasticsearch-client-groovy</artifactId>
  26. <version>${es.version}</version>
  27. </dependency>
  28. --------------------------------------------------
  29. include::anatomy.asciidoc[]
  30. include::client.asciidoc[]
  31. include::index_.asciidoc[]
  32. include::get.asciidoc[]
  33. include::delete.asciidoc[]
  34. include::search.asciidoc[]
  35. include::count.asciidoc[]