index.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. [[java-api]]
  2. = Java API
  3. :ref: http://www.elasticsearch.org/guide/elasticsearch/reference/current
  4. [preface]
  5. == Preface
  6. This section describes the Java API that elasticsearch provides. All
  7. elasticsearch operations are executed using a
  8. <<client,Client>> object. All
  9. operations are completely asynchronous in nature (either accepts a
  10. listener, or return a future).
  11. Additionally, operations on a client may be accumulated and executed in
  12. <<bulk,Bulk>>.
  13. Note, all the APIs are exposed through the
  14. Java API (actually, the Java API is used internally to execute them).
  15. == Maven Repository
  16. Elasticsearch is hosted on
  17. http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22elasticsearch%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</artifactId>
  25. <version>${es.version}</version>
  26. </dependency>
  27. --------------------------------------------------
  28. include::client.asciidoc[]
  29. include::index_.asciidoc[]
  30. include::get.asciidoc[]
  31. include::delete.asciidoc[]
  32. include::bulk.asciidoc[]
  33. include::search.asciidoc[]
  34. include::count.asciidoc[]
  35. include::delete-by-query.asciidoc[]
  36. include::facets.asciidoc[]
  37. include::percolate.asciidoc[]
  38. include::query-dsl-queries.asciidoc[]
  39. include::query-dsl-filters.asciidoc[]