# List of Query DSL keywords and additional instructions

**URL:** <https://discuss.elastic.co/t/list-of-query-dsl-keywords-and-additional-instructions/316132>\
**Category:** Elasticsearch\
**Created:** [October 8, 2022, 3:36pm UTC](https://discuss.elastic.co/t/list-of-query-dsl-keywords-and-additional-instructions/316132 "2022-10-08T15:36:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Gattinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_gattinger/32/99690_2.png) [@Michael\_Gattinger](https://discuss.elastic.co/u/Michael_Gattinger)\
**Post date:** [October 8, 2022, 3:36pm UTC](https://discuss.elastic.co/t/list-of-query-dsl-keywords-and-additional-instructions/316132/1 "2022-10-08T15:36:12Z")

</div>

Hello,

as i understood Query DSL has in line 1 of the Query spezial keywords that are not part of the JSON. JSON starts at line 2 of the Query and is only one JSON-Object accept BULK-Requests, where multiple JSON Object can follow.

I search for a List of all Keywords in DSL. So "POST", "GET", "PUT" should be in there for example. Additionally i search for a List of all instructions that can be added like "pretty"

Thanks - Enomine

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 8, 2022, 4:16pm UTC](https://discuss.elastic.co/t/list-of-query-dsl-keywords-and-additional-instructions/316132/2 "2022-10-08T16:16:26Z")

</div>

The Elasticsearch Query DSL is a REST Based API so normal REST stuff applies

[Here](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html) is the Official Documentation

[Here](https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html) are the search APIs

[Here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs.html) are the document APIs ... very useful

There are many [other APIs](https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html) for managing indices etc.

AND if you go into Kibana -\> Dev Tools

The editor has full suggestion capabilities.

 ![Screen Shot 2022-10-08 at 9.10.29 AM](https://us1.discourse-cdn.com/elastic/original/3X/8/d/8d244f6b751284975d76460c43f0d53d185231f0.png)

Also there a many many online tutorials / articles

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Michael\_Gattinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_gattinger/32/99690_2.png) [@Michael\_Gattinger](https://discuss.elastic.co/u/Michael_Gattinger)\
**Post date:** [October 8, 2022, 4:33pm UTC](https://discuss.elastic.co/t/list-of-query-dsl-keywords-and-additional-instructions/316132/3 "2022-10-08T16:33:03Z")

</div>

Hello,

thanks for your help.

I search for a list of reserved keywords for the first line (you tell its rest-syntax). So something like this: [Reserved keywords | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-syntax-reserved.html) but for DSL.

It may be that there are keywords i could use but never saw until now.

If i hit STRG+Space in Kibana it shows GET, PUT, POST, DELETE and HEAD. Are these the only ones which that a first line can begin? Whats about a list of additional instructions like "pretty"?

I search for a syntax page, not for a "how to solve use-case xyz" =)

Thanks - Enomine

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 8, 2022, 4:50pm UTC](https://discuss.elastic.co/t/list-of-query-dsl-keywords-and-additional-instructions/316132/4 "2022-10-08T16:50:57Z")

</div>

I do not think there is that list of reserved words...

> [@Michael\_Gattinger](#):
>
> If i hit STRG+Space in Kibana it shows GET, PUT, POST, DELETE and HEAD. Are these the only ones which that a first line can begin?

YES - Normal REST Methods

`?pretty` is basic a normal / rest / json directive. If you are new to REST perhaps you should do a little reading on that.

`?v` verbose pretty normal

you can also do

`?help` on many commands to get help

Perhaps do a little reading on REST APIs in general....

> [@Michael\_Gattinger](#):
>
> I search for a syntax page, not for a "how to solve use-case xyz" =)

There are extensive syntax and examples in our docs and across the web...

Example Syntax [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html) syntax and examples [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html)

The type ahead in the Kibana - Dev Tools can help guide you through the syntax

I do not know where the BNF notation for the DSL is or whether it exists

I think you are just going to need to "dig in" and get started, I would suggest getting familiar with our documentation ... Yes it is big and a lot 🙂 but you will be an expert in no time!

---

<div class="post-metadata">

**Author:** ![Michael\_Gattinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_gattinger/32/99690_2.png) [@Michael\_Gattinger](https://discuss.elastic.co/u/Michael_Gattinger)\
**Post date:** [October 8, 2022, 5:49pm UTC](https://discuss.elastic.co/t/list-of-query-dsl-keywords-and-additional-instructions/316132/5 "2022-10-08T17:49:22Z")

</div>

Yeah its too big, thats the problem. I engage on Elasticsearch since 15. march 2022 and am still a noob 😉

It is a big framework... I am not used to dig into big frameworks. Have less expirience in that.

Thanks for your understanding and help.

Enomine

---

<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:** [November 5, 2022, 5:49pm UTC](https://discuss.elastic.co/t/list-of-query-dsl-keywords-and-additional-instructions/316132/6 "2022-11-05T17:49:27Z")

</div>

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