# Help for an ES noob?

**URL:** <https://discuss.elastic.co/t/help-for-an-es-noob/4556>\
**Category:** Elasticsearch\
**Created:** [June 4, 2011, 9:45pm UTC](https://discuss.elastic.co/t/help-for-an-es-noob/4556 "2011-06-04T21:45:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcariens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcariens/32/3027_2.png) [@rcariens](https://discuss.elastic.co/u/rcariens)\
**Post date:** [June 4, 2011, 9:45pm UTC](https://discuss.elastic.co/t/help-for-an-es-noob/4556/1 "2011-06-04T21:45:37Z")

</div>

Ahoy ahoy,

I'm _really_ interested in ElasticSearch but I'm having some trouble.  
Specifically:

- I'm trying to write some tests that drive the API (mostly for my own  
discovery and understanding), but can't find the javadocs online, in the  
download, or when I build the distribution.
- I get runtime exceptions when I use the Groovy API per the guide [1].
- I can build a local distribution (running "gradlew"), but running any  
gradle target fails [2].

My setup is: Mac OS X 10.5.8, ElasticSearch 0.16.2, gradle 0.8, groovy 1.7,  
Java 1.6.0\_24\_blah-blah.

I'll keep snooping around and tinkering, and thanks in advance for any help  
you can provide!

Best,  
Rich

[1] - This code:

-snip-

```
    GNodeBuilder nodeBuilder = nodeBuilder()

    nodeBuilder.settings {

        node {

            client = true

        }

        cluster {

            name = "test"

        }

    }
    node = nodeBuilder.node()

```

-snip-

results in this exception at runtime:

groovy.lang.MissingMethodException: No signature of method: static  
org.elasticsearch.common.xcontent.XContentFactory.contentBinaryBuilder() is  
applicable for argument types:  
(org.elasticsearch.common.xcontent.XContentType$1) values: [JSON]  
at  
groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1360)  
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1346)  
at  
org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:35)  
at  
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)  
at  
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)  
at  
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)  
at  
org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:63)  
at  
org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes$0.callCurrent(Unknown  
Source)  
at  
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)  
at  
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)  
at  
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:155)  
at  
org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:59)  
at  
org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes.call(Unknown  
Source)  
...

[2] - elasticsearch-elasticsearch-abfc7f0$ gradle -S

FAILURE: Build failed with an exception.

- Where:  
Build file 'elasticsearch-elasticsearch-abfc7f0/build.gradle' line: 5

- What went wrong:  
A problem occurred evaluating root project 'elasticsearch-root'.  
Cause: Could not find method apply() for arguments [{plugin=base}] on root  
project 'elasticsearch-root'.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 4, 2011, 10:01pm UTC](https://discuss.elastic.co/t/help-for-an-es-noob/4556/2 "2011-06-04T22:01:17Z")

</div>

Are you sure you are using the correct version? I think you got things mixed up, teh groovy code you are running is not 0.16.2. Why not use directly the 0.16.2 distribution?

On Sunday, June 5, 2011 at 12:45 AM, Rich Cariens wrote:

> Ahoy ahoy,
> 
> I'm _really_ interested in Elasticsearch but I'm having some trouble. Specifically:  
> I'm trying to write some tests that drive the API (mostly for my own discovery and understanding), but can't find the javadocs online, in the download, or when I build the distribution.  
> I get runtime exceptions when I use the Groovy API per the guide [1].  
> I can build a local distribution (running "gradlew"), but running any gradle target fails [2].
> 
> My setup is: Mac OS X 10.5.8, Elasticsearch 0.16.2, gradle 0.8, groovy 1.7, Java 1.6.0\_24\_blah-blah.
> 
> I'll keep snooping around and tinkering, and thanks in advance for any help you can provide!
> 
> Best,  
> Rich
> 
> [1] - This code:
> 
> -snip-  
> GNodeBuilder nodeBuilder = nodeBuilder()  
> nodeBuilder.settings {  
> node {  
> client = true  
> }  
> cluster {  
> name = "test"  
> }  
> }  
> node = nodeBuilder.node()  
> -snip-
> 
> results in this exception at runtime:
> 
> groovy.lang.MissingMethodException: No signature of method: static org.elasticsearch.common.xcontent.XContentFactory.contentBinaryBuilder() is applicable for argument types: (org.elasticsearch.common.xcontent.XContentType$1) values: [JSON]  
> at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1360)  
> at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1346)  
> at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:35)  
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)  
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)  
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)  
> at org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:63)  
> at org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes$0.callCurrent(Unknown Source)  
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)  
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)  
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:155)  
> at org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:59)  
> at org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes.call(Unknown Source)  
> ...
> 
> [2] - elasticsearch-elasticsearch-abfc7f0$ gradle -S
> 
> FAILURE: Build failed with an exception.
> 
> - Where:  
> Build file 'elasticsearch-elasticsearch-abfc7f0/build.gradle' line: 5
> 
> - What went wrong:  
> A problem occurred evaluating root project 'elasticsearch-root'.  
> Cause: Could not find method apply() for arguments [{plugin=base}] on root project 'elasticsearch-root'.

---

<div class="post-metadata">

**Author:** ![rcariens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcariens/32/3027_2.png) [@rcariens](https://discuss.elastic.co/u/rcariens)\
**Post date:** [June 4, 2011, 10:57pm UTC](https://discuss.elastic.co/t/help-for-an-es-noob/4556/3 "2011-06-04T22:57:33Z")

</div>

Yes, I'm sure I'm using the 0.16.2 distro (the 0.16.2 jar is on my  
classpath). That said, the groovy snippet below is directly from the Groovy  
API page[http://www.elasticsearch.org/guide/reference/groovy-api/client.html](http://www.elasticsearch.org/guide/reference/groovy-api/client.html)on  
the ES website.

Perhaps I just need access to the latest javadocs/groovydocs. Are they  
published somewhere?

On Sat, Jun 4, 2011 at 6:01 PM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Are you sure you are using the correct version? I think you got things  
> mixed up, teh groovy code you are running is not 0.16.2. Why not use  
> directly the 0.16.2 distribution?
> 
> On Sunday, June 5, 2011 at 12:45 AM, Rich Cariens wrote:
> 
> Ahoy ahoy,
> 
> I'm _really_ interested in Elasticsearch but I'm having some trouble.  
> Specifically:
> 
> - I'm trying to write some tests that drive the API (mostly for my own  
> discovery and understanding), but can't find the javadocs online, in the  
> download, or when I build the distribution.
> - I get runtime exceptions when I use the Groovy API per the guide [1].
> - I can build a local distribution (running "gradlew"), but running any  
> gradle target fails [2].
> 
> My setup is: Mac OS X 10.5.8, Elasticsearch 0.16.2, gradle 0.8, groovy 1.7,  
> Java 1.6.0\_24\_blah-blah.
> 
> I'll keep snooping around and tinkering, and thanks in advance for any help  
> you can provide!
> 
> Best,  
> Rich
> 
> [1] - This code:
> 
> -snip-
> 
> ```
> GNodeBuilder nodeBuilder = nodeBuilder()
> 
> nodeBuilder.settings {
> 
> node {
> 
> client = true
> 
> }
> 
> cluster {
> 
> name = "test"
> 
> }
> 
> }
> node = nodeBuilder.node()
> 
> ```
> 
> -snip-
> 
> results in this exception at runtime:
> 
> groovy.lang.MissingMethodException: No signature of method: static  
> org.elasticsearch.common.xcontent.XContentFactory.contentBinaryBuilder() is  
> applicable for argument types:  
> (org.elasticsearch.common.xcontent.XContentType$1) values: [JSON]  
> at  
> groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1360)  
> at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1346)  
> at  
> org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:35)  
> at  
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)  
> at  
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)  
> at  
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)  
> at  
> org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:63)  
> at  
> org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes$0.callCurrent(Unknown  
> Source)  
> at  
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)  
> at  
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)  
> at  
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:155)  
> at  
> org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:59)  
> at  
> org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes.call(Unknown  
> Source)  
> ...
> 
> [2] - elasticsearch-elasticsearch-abfc7f0$ gradle -S
> 
> FAILURE: Build failed with an exception.
> 
> - Where:  
> Build file 'elasticsearch-elasticsearch-abfc7f0/build.gradle' line: 5
> 
> - What went wrong:  
> A problem occurred evaluating root project 'elasticsearch-root'.  
> Cause: Could not find method apply() for arguments [{plugin=base}] on root  
> project 'elasticsearch-root'.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 4, 2011, 11:10pm UTC](https://discuss.elastic.co/t/help-for-an-es-noob/4556/4 "2011-06-04T23:10:22Z")

</div>

You can get the javadocs from the maven repo, but it seems like you are using an older jar of the lang-groovy integration.

On Sunday, June 5, 2011 at 1:57 AM, Rich Cariens wrote:

> Yes, I'm sure I'm using the 0.16.2 distro (the 0.16.2 jar is on my classpath). That said, the groovy snippet below is directly from the Groovy API page ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/groovy-api/client.html)) on the ES website.
> 
> Perhaps I just need access to the latest javadocs/groovydocs. Are they published somewhere?
> 
> On Sat, Jun 4, 2011 at 6:01 PM, Shay Banon \<[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com) ([mailto:shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com))\> wrote:
> 
> > Are you sure you are using the correct version? I think you got things mixed up, teh groovy code you are running is not 0.16.2. Why not use directly the 0.16.2 distribution?
> > 
> > On Sunday, June 5, 2011 at 12:45 AM, Rich Cariens wrote:
> > 
> > > Ahoy ahoy,
> > > 
> > > I'm _really_ interested in Elasticsearch but I'm having some trouble. Specifically:  
> > > I'm trying to write some tests that drive the API (mostly for my own discovery and understanding), but can't find the javadocs online, in the download, or when I build the distribution.  
> > > I get runtime exceptions when I use the Groovy API per the guide [1].  
> > > I can build a local distribution (running "gradlew"), but running any gradle target fails [2].
> > > 
> > > My setup is: Mac OS X 10.5.8, Elasticsearch 0.16.2, gradle 0.8, groovy 1.7, Java 1.6.0\_24\_blah-blah.
> > > 
> > > I'll keep snooping around and tinkering, and thanks in advance for any help you can provide!
> > > 
> > > Best,  
> > > Rich
> > > 
> > > [1] - This code:
> > > 
> > > -snip-  
> > > GNodeBuilder nodeBuilder = nodeBuilder()  
> > > nodeBuilder.settings {  
> > > node {  
> > > client = true  
> > > }  
> > > cluster {  
> > > name = "test"  
> > > }  
> > > }  
> > > node = nodeBuilder.node()  
> > > -snip-
> > > 
> > > results in this exception at runtime:
> > > 
> > > groovy.lang.MissingMethodException: No signature of method: static org.elasticsearch.common.xcontent.XContentFactory.contentBinaryBuilder() is applicable for argument types: (org.elasticsearch.common.xcontent.XContentType$1) values: [JSON]  
> > > at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1360)  
> > > at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1346)  
> > > at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:35)  
> > > at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)  
> > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)  
> > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)  
> > > at org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:63)  
> > > at org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes$0.callCurrent(Unknown Source)  
> > > at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)  
> > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)  
> > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:155)  
> > > at org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:59)  
> > > at org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes.call(Unknown Source)  
> > > ...
> > > 
> > > [2] - elasticsearch-elasticsearch-abfc7f0$ gradle -S
> > > 
> > > FAILURE: Build failed with an exception.
> > > 
> > > - Where:  
> > > Build file 'elasticsearch-elasticsearch-abfc7f0/build.gradle' line: 5
> > > 
> > > - What went wrong:  
> > > A problem occurred evaluating root project 'elasticsearch-root'.  
> > > Cause: Could not find method apply() for arguments [{plugin=base}] on root project 'elasticsearch-root'.

---

<div class="post-metadata">

**Author:** ![rcariens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcariens/32/3027_2.png) [@rcariens](https://discuss.elastic.co/u/rcariens)\
**Post date:** [June 4, 2011, 11:36pm UTC](https://discuss.elastic.co/t/help-for-an-es-noob/4556/5 "2011-06-04T23:36:45Z")

</div>

Thanks so much Shay. I'll double-check my groovy jar and grab those  
javadocs. Keep up the good work!

On Sat, Jun 4, 2011 at 7:10 PM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> You can get the javadocs from the maven repo, but it seems like you are  
> using an older jar of the lang-groovy integration.
> 
> On Sunday, June 5, 2011 at 1:57 AM, Rich Cariens wrote:
> 
> Yes, I'm sure I'm using the 0.16.2 distro (the 0.16.2 jar is on my  
> classpath). That said, the groovy snippet below is directly from the Groovy  
> API page[http://www.elasticsearch.org/guide/reference/groovy-api/client.html](http://www.elasticsearch.org/guide/reference/groovy-api/client.html)on the ES website.
> 
> Perhaps I just need access to the latest javadocs/groovydocs. Are they  
> published somewhere?
> 
> On Sat, Jun 4, 2011 at 6:01 PM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:
> 
> Are you sure you are using the correct version? I think you got things  
> mixed up, teh groovy code you are running is not 0.16.2. Why not use  
> directly the 0.16.2 distribution?
> 
> On Sunday, June 5, 2011 at 12:45 AM, Rich Cariens wrote:
> 
> Ahoy ahoy,
> 
> I'm _really_ interested in Elasticsearch but I'm having some trouble.  
> Specifically:
> 
> - I'm trying to write some tests that drive the API (mostly for my own  
> discovery and understanding), but can't find the javadocs online, in the  
> download, or when I build the distribution.
> - I get runtime exceptions when I use the Groovy API per the guide [1].
> - I can build a local distribution (running "gradlew"), but running any  
> gradle target fails [2].
> 
> My setup is: Mac OS X 10.5.8, Elasticsearch 0.16.2, gradle 0.8, groovy 1.7,  
> Java 1.6.0\_24\_blah-blah.
> 
> I'll keep snooping around and tinkering, and thanks in advance for any help  
> you can provide!
> 
> Best,  
> Rich
> 
> [1] - This code:
> 
> -snip-
> 
> ```
> GNodeBuilder nodeBuilder = nodeBuilder()
> 
> nodeBuilder.settings {
> 
> node {
> 
> client = true
> 
> }
> 
> cluster {
> 
> name = "test"
> 
> }
> 
> }
> node = nodeBuilder.node()
> 
> ```
> 
> -snip-
> 
> results in this exception at runtime:
> 
> groovy.lang.MissingMethodException: No signature of method: static  
> org.elasticsearch.common.xcontent.XContentFactory.contentBinaryBuilder() is  
> applicable for argument types:  
> (org.elasticsearch.common.xcontent.XContentType$1) values: [JSON]  
> at  
> groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1360)  
> at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1346)  
> at  
> org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:35)  
> at  
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)  
> at  
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)  
> at  
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)  
> at  
> org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:63)  
> at  
> org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes$0.callCurrent(Unknown  
> Source)  
> at  
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)  
> at  
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)  
> at  
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:155)  
> at  
> org.elasticsearch.groovy.common.xcontent.GXContentBuilder.buildAsBytes(GXContentBuilder.groovy:59)  
> at  
> org.elasticsearch.groovy.common.xcontent.GXContentBuilder$buildAsBytes.call(Unknown  
> Source)  
> ...
> 
> [2] - elasticsearch-elasticsearch-abfc7f0$ gradle -S
> 
> FAILURE: Build failed with an exception.
> 
> - Where:  
> Build file 'elasticsearch-elasticsearch-abfc7f0/build.gradle' line: 5
> 
> - What went wrong:  
> A problem occurred evaluating root project 'elasticsearch-root'.  
> Cause: Could not find method apply() for arguments [{plugin=base}] on root  
> project 'elasticsearch-root'.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:04am UTC](https://discuss.elastic.co/t/help-for-an-es-noob/4556/6 "2017-07-06T04:04:31Z")

</div>


