# Simple syntax diagram of Query DSL?

**URL:** <https://discuss.elastic.co/t/simple-syntax-diagram-of-query-dsl/232257>\
**Category:** Elasticsearch\
**Created:** [May 12, 2020, 3:27pm UTC](https://discuss.elastic.co/t/simple-syntax-diagram-of-query-dsl/232257 "2020-05-12T15:27:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Rahder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/max_rahder/32/68166_2.png) [@Max\_Rahder](https://discuss.elastic.co/u/Max_Rahder)\
**Post date:** [May 12, 2020, 3:27pm UTC](https://discuss.elastic.co/t/simple-syntax-diagram-of-query-dsl/232257/1 "2020-05-12T15:27:48Z")

</div>

Hi! I'm a complete noob. Is there a nice simple syntax diagram (i.e., BNF or a diagram thereof), of which clauses go with which terms? Or a formal grammar, although I find syntax diagrams easier to read.

These are the kind of diagram I'm looking for.

> **[Syntax diagram](https://en.wikipedia.org/wiki/Syntax_diagram)**
>
> Syntax diagrams (or railroad diagrams) are a way to represent a context-free grammar. They represent a graphical alternative to Backus–Naur form or to EBNF as metalanguages. Early books using syntax diagrams include the "Pascal User Manual" written by Niklaus Wirth (diagrams start at page 47) and the Burroughs CANDE Manual.. In the compilation field, textual representations like BNF or its variants are usually preferred. BNF is text-based, and used by compiler writers and parser generators The r...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 9, 2020, 3:27pm UTC](https://discuss.elastic.co/t/simple-syntax-diagram-of-query-dsl/232257/2 "2020-06-09T15:27:49Z")

</div>

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