# Adding a normalizer for case-insensitive search on keyword field to an active index

**URL:** <https://discuss.elastic.co/t/adding-a-normalizer-for-case-insensitive-search-on-keyword-field-to-an-active-index/106725>\
**Category:** Elasticsearch\
**Created:** [November 7, 2017, 5:22pm UTC](https://discuss.elastic.co/t/adding-a-normalizer-for-case-insensitive-search-on-keyword-field-to-an-active-index/106725 "2017-11-07T17:22:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gansvv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gansvv/32/23904_2.png) [@gansvv](https://discuss.elastic.co/u/gansvv)\
**Post date:** [November 8, 2017, 6:59pm UTC](https://discuss.elastic.co/t/adding-a-normalizer-for-case-insensitive-search-on-keyword-field-to-an-active-index/106725/3 "2017-11-08T18:59:40Z")

</div>

Thanks @jimczi

But I'm unable to add a normalizer on an existing index. (I am able to do this for analyzer, but that doesn't work for keyword fields).

```
curl -XPUT localhost:9200/ganesh_index/?pretty -d '
> {
> "settings": {
> "analysis": {
> "normalizer": {
> "useLowercase": {
> "type": "custom",
> "filter": ["lowercase"]
> }
> }
> }
> },
> "mappings":{
> "ganesh_type":{
> "properties":{
> "title":{
> "normalizer":"useLowercase",
> "type":"keyword"
> }
> }
> }
> }
> }'
{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_already_exists_exception",
        "reason" : "index [ganesh_index/mg5TckzaR5KZDE-FphTeDg] already exists",
        "index_uuid" : "mg5TckzaR5KZDE-FphTeDg",
        "index" : "ganesh_index"
      }
    ],
    "type" : "index_already_exists_exception",
    "reason" : "index [ganesh_index/mg5TckzaR5KZDE-FphTeDg] already exists",
    "index_uuid" : "mg5TckzaR5KZDE-FphTeDg",
    "index" : "ganesh_index"
  },
  "status" : 400
}
```

---

_[View the full topic](https://discuss.elastic.co/t/adding-a-normalizer-for-case-insensitive-search-on-keyword-field-to-an-active-index/106725)._
