# EDIT query as DSL in Kibana

**URL:** <https://discuss.elastic.co/t/edit-query-as-dsl-in-kibana/214541>\
**Category:** Kibana\
**Created:** [January 10, 2020, 6:07am UTC](https://discuss.elastic.co/t/edit-query-as-dsl-in-kibana/214541 "2020-01-10T06:07:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)\
**Post date:** [January 10, 2020, 6:07am UTC](https://discuss.elastic.co/t/edit-query-as-dsl-in-kibana/214541/1 "2020-01-10T06:07:25Z")

</div>

Hi i want to write queries directly in DSL to add filters in kibana vizualisations. for eg below screen shot talks about a query which is phrase type. i achieved this by just creating one filter using the default option of (if "some field " is Equal to "some value") and then adited the filter as query dsl.

my question is can i edit this in DSL by adding some regular expression format inside it . now the current query type is phrase in this screen shot.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee3399acaf5ce7f32b4747521cc48c1926ddf603.png)

---

<div class="post-metadata">

**Author:** ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)\
**Post date:** [January 10, 2020, 6:51pm UTC](https://discuss.elastic.co/t/edit-query-as-dsl-in-kibana/214541/2 "2020-01-10T18:51:14Z")

</div>

Regular expressions are only supported in [`regexp`](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html) and [`query_string`](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html) queries. You cannot use regular expressions in `match` queries, though you can tweak the fuzziness settings: [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html#query-dsl-match-query-fuzziness](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html#query-dsl-match-query-fuzziness)

---

<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:** [February 7, 2020, 6:51pm UTC](https://discuss.elastic.co/t/edit-query-as-dsl-in-kibana/214541/3 "2020-02-07T18:51:24Z")

</div>

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