# ES5.0A2 Type keyword and Keyword analyzer

**URL:** <https://discuss.elastic.co/t/es5-0a2-type-keyword-and-keyword-analyzer/49733>\
**Category:** Elasticsearch\
**Created:** [May 11, 2016, 8:14am UTC](https://discuss.elastic.co/t/es5-0a2-type-keyword-and-keyword-analyzer/49733 "2016-05-11T08:14:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gquintana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gquintana/32/48441_2.png) [@gquintana](https://discuss.elastic.co/u/gquintana)\
**Post date:** [May 11, 2016, 8:14am UTC](https://discuss.elastic.co/t/es5-0a2-type-keyword-and-keyword-analyzer/49733/1 "2016-05-11T08:14:02Z")

</div>

Is it possible to do something like this with the new keyword type?

```
PUT book
{
  "settings": {
    "analysis": {
      "analyzer": {
        "code": {
          "type": "custom",
          "tokenizer":"keyword",
          "filter": ["lowercase","asciifolding"]
        }
      }
    }
  },
  "mappings": {
    "book": {
      "properties": {
        "tags": {
          "type":"keyword",
          "analyzer": "code"
        }
      }
    }
  }
}

```

Note: the applied token filters do not split into multiple terms

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [May 11, 2016, 8:19am UTC](https://discuss.elastic.co/t/es5-0a2-type-keyword-and-keyword-analyzer/49733/2 "2016-05-11T08:19:53Z")

</div>

Hi Gerald,

We would like to implement something like this, but this is not possible yet. I don't think it will make it into 5.0 but hopefully it will be implemented in one of the 5.x releases.

---

<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:** [May 11, 2016, 8:56am UTC](https://discuss.elastic.co/t/es5-0a2-type-keyword-and-keyword-analyzer/49733/3 "2016-05-11T08:56:01Z")

</div>

For reference: [https://github.com/elastic/elasticsearch/issues/18064](https://github.com/elastic/elasticsearch/issues/18064)

---

<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:** [July 5, 2017, 10:52pm UTC](https://discuss.elastic.co/t/es5-0a2-type-keyword-and-keyword-analyzer/49733/4 "2017-07-05T22:52:34Z")

</div>


