# Keyword type to lowercase

**URL:** <https://discuss.elastic.co/t/keyword-type-to-lowercase/79710>\
**Category:** Elasticsearch\
**Created:** [March 23, 2017, 8:47am UTC](https://discuss.elastic.co/t/keyword-type-to-lowercase/79710 "2017-03-23T08:47:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![no\_jihun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/no_jihun/32/64028_2.png) [@no\_jihun](https://discuss.elastic.co/u/no_jihun)\
**Post date:** [March 23, 2017, 8:47am UTC](https://discuss.elastic.co/t/keyword-type-to-lowercase/79710/1 "2017-03-23T08:47:02Z")

</div>

Normalizer for Keyword datatype is **_Experimental_** currently.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html#keyword-params](https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html#keyword-params)

Is there another way to lowercasing value of keyword field?

this is mapping

```
properties : {
  "country" : {
    "type":"keyword"
  }
}

```

Add documents

```
POST {
  "country":"US"
}
POST {
  "country":"us"
}

```

Now, want to search both US and us.  
this expected to return two document above.

```
GET
search?q=country:us

```

How can I do that without using experimental feature?

---

<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:** [March 23, 2017, 10:10am UTC](https://discuss.elastic.co/t/keyword-type-to-lowercase/79710/2 "2017-03-23T10:10:11Z")

</div>

You can use ingest node and lowercase your field at index time.

---

<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:** [April 20, 2017, 10:10am UTC](https://discuss.elastic.co/t/keyword-type-to-lowercase/79710/3 "2017-04-20T10:10:51Z")

</div>

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