# Elasticsearch field is analyzed despite template is configured to not analyze field

**URL:** <https://discuss.elastic.co/t/elasticsearch-field-is-analyzed-despite-template-is-configured-to-not-analyze-field/17771>\
**Category:** Elasticsearch\
**Created:** [May 28, 2014, 7:14am UTC](https://discuss.elastic.co/t/elasticsearch-field-is-analyzed-despite-template-is-configured-to-not-analyze-field/17771 "2014-05-28T07:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_Arora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gaurav_arora/32/1492_2.png) [@Gaurav\_Arora](https://discuss.elastic.co/u/Gaurav_Arora)\
**Post date:** [May 28, 2014, 7:14am UTC](https://discuss.elastic.co/t/elasticsearch-field-is-analyzed-despite-template-is-configured-to-not-analyze-field/17771/1 "2014-05-28T07:14:33Z")

</div>

I posted this to stackoverflow but I'm hoping I will get better answers  
here

- [http://stackoverflow.com/questions/23904655/elasticsearch-field-is-analyzed-despite-template-is-configured-to-not-analyze-fi](http://stackoverflow.com/questions/23904655/elasticsearch-field-is-analyzed-despite-template-is-configured-to-not-analyze-fi)

My logstash template looks like this -

> <https://gist.github.com/gauravarora/5e84f6c95ab83e563502>

There are two fields, zone and username that I have set as not\_analyzed yet  
they continue to be analyzed and show as analyzed when I view the index  
mapping. I have dropped the index multiple times in the hopes that it will  
pick up the new template but the fields are always analyzed.

The index is dynamically created daily so I cannot set the mapping in the  
index itself.

Is there something wrong with my template?

I tried this config also -  
[https://gist.github.com/gauravarora/359d71999ed811ae56c6](https://gist.github.com/gauravarora/359d71999ed811ae56c6) but doesn't work  
either.

I'm not sure what I am doing wrong, I have tried all the template configs I  
have found via google but none of them seem to work.

Thanks,  
Gaurav

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/203539a7-ba9e-46e0-831d-07b90c468b28%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/203539a7-ba9e-46e0-831d-07b90c468b28%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![n1k](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@n1k](https://discuss.elastic.co/u/n1k)\
**Post date:** [July 11, 2016, 11:50am UTC](https://discuss.elastic.co/t/elasticsearch-field-is-analyzed-despite-template-is-configured-to-not-analyze-field/17771/2 "2016-07-11T11:50:32Z")

</div>

I am also facing similar issue.  
Can anyone help on this?

---

<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:36pm UTC](https://discuss.elastic.co/t/elasticsearch-field-is-analyzed-despite-template-is-configured-to-not-analyze-field/17771/3 "2017-07-05T22:36:36Z")

</div>


