i am confused about restful api query DSL body schema , reference is full of examples not BNF syntaxes.
books i can find like it's too old & code won't work for es 5.4+
At last i found there is a spec project with test. https://github.com/elastic/elasticsearch/tree/master/rest-api-spec, maybe i can learn from the tests.
We don't currently have an syntactical grammar / schema for the request bodies at the moment. Different APIs have different schemas, depending on the function of that schema. I'm afraid you'll just have to read the docs for the particular endpoints you are interested in to learn the schema, sorry.
okay, i get it ~ if you have any future plan to redesign the DSL syntax, i suggest make Painless & Query DSL & Kibana Export JSON into one language , now they are 3 different languages.
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.