From 0fea2a207eaa68d0d93a7ef4ac41a69495f11667 Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Sat, 4 Feb 2017 11:42:45 +0100 Subject: Use Versions.asciidoc for groovy docs too --- docs/groovy-api/delete.asciidoc | 2 +- docs/groovy-api/get.asciidoc | 2 +- docs/groovy-api/index.asciidoc | 7 +++---- docs/groovy-api/index_.asciidoc | 2 +- docs/groovy-api/search.asciidoc | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) (limited to 'docs/groovy-api') 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 <>. 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): -- cgit v1.2.3