elasticsearch-grails-plugin
elasticsearch-grails-plugin copied to clipboard
Poor documentation of Closure Queries
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?