[[query-dsl]] = Query DSL [partintro] -- *elasticsearch* provides a full Query DSL based on JSON to define queries. In general, there are basic queries such as <> or <>. There are also compound queries like the <> query. While queries have scoring capabilities, in some contexts they will only be used to filter the result set, such as in the <> or <> queries. Think of the Query DSL as an AST of queries. Some queries can be used by themselves like the <> query but other queries can contain queries (like the <> query), and each of these composite queries can contain *any* query of the list of queries, resulting in the ability to build quite complex (and interesting) queries. Queries can be used in different APIs. For example, within a <>, or as an <>. This section explains the queries that can form the AST one can use. -- include::query-dsl/index.asciidoc[]