index.asciidoc 1.3 KB

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