I can't get the Groovy client to accept the 'explain' or 'from / size'
parameters. I get an error:
java.lang.IllegalArgumentException: Array elements must be defined
with the "element" method call eg: element(value)
at
org.elasticsearch.groovy.common.xcontent.GXContentBuilder.invokeMethod(GXContentBuilder.groovy:
122)
.
.
.
Yea, it does. The logic for the builder is taken from grails JSONBuilder: https://github.com/grails/grails-core/blob/master/src/java/grails/web/JSONBuilder.groovy.
To be honest, I am not a groovy expert to tell you why sometimes you need to
add = signs and sometimes you don't (or really, have not looked too deeply
into it), but, it seems like, in this case, you do. So, here is how it would
work:
Yea, it does. The logic for the builder is taken from grails JSONBuilder: https://github.com/grails/grails-core/blob/master/src/java/grails/web/JSONBuilder.groovy.
To be honest, I am not a groovy expert to tell you why sometimes you need to
add = signs and sometimes you don't (or really, have not looked too deeply
into it), but, it seems like, in this case, you do. So, here is how it would
work:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.