diff --git a/docs/groovy-api/delete.asciidoc b/docs/groovy-api/delete.asciidoc index a2f98850e18..e3320126966 100644 --- a/docs/groovy-api/delete.asciidoc +++ b/docs/groovy-api/delete.asciidoc @@ -2,7 +2,8 @@ == Delete API The delete API is very similar to the -{java}/java-docs-delete.html[Java delete API], here is an +// {java}/java-docs-delete.html[] +Java delete API, here is an example: [source,js] diff --git a/docs/groovy-api/get.asciidoc b/docs/groovy-api/get.asciidoc index 3d112b33501..6bf476c16a8 100644 --- a/docs/groovy-api/get.asciidoc +++ b/docs/groovy-api/get.asciidoc @@ -2,7 +2,8 @@ == Get API The get API is very similar to the -{java}/java-docs-get.html[Java get API]. The main benefit +// {java}/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 be7a99d30ef..cd7f0ca4ac9 100644 --- a/docs/groovy-api/index_.asciidoc +++ b/docs/groovy-api/index_.asciidoc @@ -2,7 +2,8 @@ == Index API The index API is very similar to the -{java}/java-docs-index.html[Java index API]. The Groovy +// {java}/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 ad7ba528d2e..946760d95cc 100644 --- a/docs/groovy-api/search.asciidoc +++ b/docs/groovy-api/search.asciidoc @@ -2,7 +2,8 @@ == Search API The search API is very similar to the -{java}/java-search.html[Java search API]. The Groovy +// {java}/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):