# Way to perform case insensitive regexp search on keyword field

**URL:** <https://discuss.elastic.co/t/way-to-perform-case-insensitive-regexp-search-on-keyword-field/193303>\
**Category:** Elasticsearch\
**Created:** [August 1, 2019, 10:39am UTC](https://discuss.elastic.co/t/way-to-perform-case-insensitive-regexp-search-on-keyword-field/193303 "2019-08-01T10:39:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinash\_07](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@avinash\_07](https://discuss.elastic.co/u/avinash_07)\
**Post date:** [August 1, 2019, 10:39am UTC](https://discuss.elastic.co/t/way-to-perform-case-insensitive-regexp-search-on-keyword-field/193303/1 "2019-08-01T10:39:43Z")

</div>

I have an index with the following mappings:

```
"mappings": {
  "event": {
    "properties": {
      "id": {
        "type": "keyword"
      },
      "name": {
        "type": "keyword"
      },
      "description": {
        "type": "text"
      },
      "status": {
        "type": "keyword"
      }
    }
  }
}

```

I want to perform partial search on the field name. I am able to achieve it using regexp query. However, it is case sensitive. Is there a way to perform case insensitive on a key word field?

---

<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:** [August 29, 2019, 10:39am UTC](https://discuss.elastic.co/t/way-to-perform-case-insensitive-regexp-search-on-keyword-field/193303/2 "2019-08-29T10:39:55Z")

</div>

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