Query DSL schema

(Lucianspec) #1

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.

So my question is :

  1. is there some place have the Query DSL schema defined?
    2. how to run the rest-api-spec test???
    sorry i hadn't noticed this before https://github.com/elastic/elasticsearch/blob/master/TESTING.asciidoc#testing-the-rest-layer

(Zachary Tong) #2

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.

(Lucianspec) #3

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.

(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.