# Regexp character '!' doesnt work in ES dsl query even on type set as 'keyword' in mappings

**URL:** <https://discuss.elastic.co/t/regexp-character-doesnt-work-in-es-dsl-query-even-on-type-set-as-keyword-in-mappings/143842>\
**Category:** Elasticsearch\
**Created:** [August 10, 2018, 9:21am UTC](https://discuss.elastic.co/t/regexp-character-doesnt-work-in-es-dsl-query-even-on-type-set-as-keyword-in-mappings/143842 "2018-08-10T09:21:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 10, 2018, 9:56am UTC](https://discuss.elastic.co/t/regexp-character-doesnt-work-in-es-dsl-query-even-on-type-set-as-keyword-in-mappings/143842/2 "2018-08-10T09:56:20Z")

</div>

Did you open as well:

- [Elastic search dsl python analyze api](https://discuss.elastic.co/t/elastic-search-dsl-python-analyze-api/143783)
- [Elastic search query containing '!' in regexp query doesnt match against any results](https://discuss.elastic.co/t/elastic-search-query-containing-in-regexp-query-doesnt-match-against-any-results/143799)

? Is it the same question?

If so please don't open multiple questions for the same topic.

---

_[View the full topic](https://discuss.elastic.co/t/regexp-character-doesnt-work-in-es-dsl-query-even-on-type-set-as-keyword-in-mappings/143842)._
