index.asciidoc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. = Groovy API
  2. :ref: http://www.elasticsearch.org/guide/elasticsearch/reference/current
  3. :java: http://www.elasticsearch.org/guide/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. link:{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 Repository
  16. The Groovy API is hosted on
  17. http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22elasticsearch-client-groovy%22[Maven
  18. Central].
  19. For example, you can define the latest version in your `pom.xml` file:
  20. [source,xml]
  21. --------------------------------------------------
  22. <dependency>
  23. <groupId>org.elasticsearch</groupId>
  24. <artifactId>elasticsearch-client-groovy</artifactId>
  25. <version>${es.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[]
  34. include::count.asciidoc[]