index.asciidoc 1.2 KB

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