elasticsearch-grails-plugin icon indicating copy to clipboard operation
elasticsearch-grails-plugin copied to clipboard

Poor documentation of Closure Queries

Open ghost opened this issue 11 years ago • 0 comments

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?

ghost avatar Nov 06 '13 09:11 ghost