mstein / elasticsearch-grails-plugin

ElasticSearch grails plugin
Based on Graeme Rocher initial stub. Note that it is still in early stage.
Other
62 stars 164 forks source link

Poor documentation of Closure Queries #71

Open ghost opened 10 years ago

ghost commented 10 years ago

I was trying a long time to finde out how to write a valid closure query. The Problem is that you had never documented how to write a valid query.

I found this tests https://github.com/elasticsearch/elasticsearch-lang-groovy/blob/master/src/test/groovy/org/elasticsearch/groovy/common/xcontent/GXContentBuilderTests.groovy These are tests how the GXContentBuilder works that you are using too. I found out that how i can write must : [] and stuff with the closure notation. Could you please document how write a correct search closure so others can easily write there valid search query closure?