summaryrefslogtreecommitdiff
path: root/docs/groovy-api
diff options
context:
space:
mode:
authorClinton Gormley <clint@traveljury.com>2017-02-04 11:42:45 +0100
committerClinton Gormley <clint@traveljury.com>2017-02-04 11:42:45 +0100
commit0fea2a207eaa68d0d93a7ef4ac41a69495f11667 (patch)
treedb4349e2a8f79085e66e66a90e75f39ea67a03ec /docs/groovy-api
parentc1be26f2e1cfd4cbebc5ce8e7a8643ca1c8cc34c (diff)
Use Versions.asciidoc for groovy docs too
Diffstat (limited to 'docs/groovy-api')
-rw-r--r--docs/groovy-api/delete.asciidoc2
-rw-r--r--docs/groovy-api/get.asciidoc2
-rw-r--r--docs/groovy-api/index.asciidoc7
-rw-r--r--docs/groovy-api/index_.asciidoc2
-rw-r--r--docs/groovy-api/search.asciidoc2
5 files changed, 7 insertions, 8 deletions
diff --git a/docs/groovy-api/delete.asciidoc b/docs/groovy-api/delete.asciidoc
index 18f11e6777..790f3ff7f6 100644
--- a/docs/groovy-api/delete.asciidoc
+++ b/docs/groovy-api/delete.asciidoc
@@ -2,7 +2,7 @@
== Delete API
The delete API is very similar to the
-// {java}/java-docs-delete.html[]
+// {javaclient}/java-docs-delete.html[]
Java delete API, here is an
example:
diff --git a/docs/groovy-api/get.asciidoc b/docs/groovy-api/get.asciidoc
index 824c18f8f1..7bb8ffe46b 100644
--- a/docs/groovy-api/get.asciidoc
+++ b/docs/groovy-api/get.asciidoc
@@ -2,7 +2,7 @@
== Get API
The get API is very similar to the
-// {java}/java-docs-get.html[]
+// {javaclient}/java-docs-get.html[]
Java get API. The main benefit
of using groovy is handling the source content. It can be automatically
converted to a `Map` which means using Groovy to navigate it is simple:
diff --git a/docs/groovy-api/index.asciidoc b/docs/groovy-api/index.asciidoc
index a140c16176..dd819c07c1 100644
--- a/docs/groovy-api/index.asciidoc
+++ b/docs/groovy-api/index.asciidoc
@@ -1,7 +1,6 @@
= Groovy API
-:ref: http://www.elastic.co/guide/en/elasticsearch/reference/current
-:java: http://www.elastic.co/guide/en/elasticsearch/client/java-api/current
-:version: 6.0.0-alpha1
+
+include::../Versions.asciidoc[]
[preface]
== Preface
@@ -13,7 +12,7 @@ asynchronous in nature (they either accept a listener, or return a
future).
The Groovy API is a wrapper on top of the
-{java}[Java API] exposing it in a groovier
+{javaclient}[Java API] exposing it in a groovier
manner. The execution options for each API follow a similar manner and
covered in <<anatomy>>.
diff --git a/docs/groovy-api/index_.asciidoc b/docs/groovy-api/index_.asciidoc
index b63a212352..b3a96334bc 100644
--- a/docs/groovy-api/index_.asciidoc
+++ b/docs/groovy-api/index_.asciidoc
@@ -2,7 +2,7 @@
== Index API
The index API is very similar to the
-// {java}/java-docs-index.html[]
+// {javaclient}/java-docs-index.html[]
Java index API. The Groovy
extension to it is the ability to provide the indexed source using a
closure. For example:
diff --git a/docs/groovy-api/search.asciidoc b/docs/groovy-api/search.asciidoc
index d0b74a4d65..f0650b8233 100644
--- a/docs/groovy-api/search.asciidoc
+++ b/docs/groovy-api/search.asciidoc
@@ -2,7 +2,7 @@
== Search API
The search API is very similar to the
-// {java}/java-search.html[]
+// {javaclient}/java-search.html[]
Java search API. The Groovy
extension allows to provide the search source to execute as a `Closure`
including the query itself (similar to GORM criteria builder):