# \[SOLVED\] Keyword and custom analyzer

**URL:** <https://discuss.elastic.co/t/solved-keyword-and-custom-analyzer/71534>\
**Category:** Elasticsearch\
**Created:** [January 13, 2017, 3:02pm UTC](https://discuss.elastic.co/t/solved-keyword-and-custom-analyzer/71534 "2017-01-13T15:02:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![axelfelix](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@axelfelix](https://discuss.elastic.co/u/axelfelix)\
**Post date:** [January 13, 2017, 3:02pm UTC](https://discuss.elastic.co/t/solved-keyword-and-custom-analyzer/71534/1 "2017-01-13T15:02:22Z")

</div>

Hi all,

I want to be sure how elastic works. Can I put a field type to "keyword" and analyze it with a custom analyzer ? Or do I have to put the "text" type ?

It is not pretty clear to me. Maybe I don't have to care about the type from the moment I use a custom analyzer...

Thanks for your reply.

Have a nice day,  
Alex

---

<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:** [January 13, 2017, 3:15pm UTC](https://discuss.elastic.co/t/solved-keyword-and-custom-analyzer/71534/2 "2017-01-13T15:15:30Z")

</div>

Not yet but it will be possible in 5.2.

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

---

<div class="post-metadata">

**Author:** ![axelfelix](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@axelfelix](https://discuss.elastic.co/u/axelfelix)\
**Post date:** [January 13, 2017, 3:23pm UTC](https://discuss.elastic.co/t/solved-keyword-and-custom-analyzer/71534/3 "2017-01-13T15:23:57Z")

</div>

Hi,

Thanks for your answer.

To sum up, with my version I need to use the "text" type to perform a custom analyze on it.

Thanks !  
Alex

---

<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:** [February 10, 2017, 3:24pm UTC](https://discuss.elastic.co/t/solved-keyword-and-custom-analyzer/71534/4 "2017-02-10T15:24:33Z")

</div>

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