# Analyzer per field type

**URL:** <https://discuss.elastic.co/t/analyzer-per-field-type/4020>\
**Category:** Elasticsearch\
**Created:** [March 3, 2011, 1:42pm UTC](https://discuss.elastic.co/t/analyzer-per-field-type/4020 "2011-03-03T13:42:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stelios](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@stelios](https://discuss.elastic.co/u/stelios)\
**Post date:** [March 3, 2011, 1:42pm UTC](https://discuss.elastic.co/t/analyzer-per-field-type/4020/1 "2011-03-03T13:42:37Z")

</div>

Hi,

Is there a way to configure an analyzer for a specific field type?  
Say for dates or strings only.

thanks  
stelios

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/Analyzer-per-field-type-tp2625170p2625170.html](http://elasticsearch-users.115913.n3.nabble.com/Analyzer-per-field-type-tp2625170p2625170.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [March 3, 2011, 3:31pm UTC](https://discuss.elastic.co/t/analyzer-per-field-type/4020/2 "2011-03-03T15:31:32Z")

</div>

Hi,

I think dynamic\_templates can do that:  
[http://localhost:4000/guide/reference/mapping/root-object-type.html](http://localhost:4000/guide/reference/mapping/root-object-type.html)

[http://localhost:4000/guide/reference/mapping/root-object-type.html](http://localhost:4000/guide/reference/mapping/root-object-type.html)  
Regards,  
Lukas

On Thu, Mar 3, 2011 at 2:42 PM, stelios [stetogias@gmail.com](mailto:stetogias@gmail.com) wrote:

> Hi,
> 
> Is there a way to configure an analyzer for a specific field type?  
> Say for dates or strings only.
> 
> thanks  
> stelios
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Analyzer-per-field-type-tp2625170p2625170.html](http://elasticsearch-users.115913.n3.nabble.com/Analyzer-per-field-type-tp2625170p2625170.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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 6, 2017, 4:10am UTC](https://discuss.elastic.co/t/analyzer-per-field-type/4020/3 "2017-07-06T04:10:57Z")

</div>


