# Elastic search setup analyzers and mapping correctly

**URL:** <https://discuss.elastic.co/t/elastic-search-setup-analyzers-and-mapping-correctly/35125>\
**Category:** Elasticsearch\
**Created:** [November 20, 2015, 8:12am UTC](https://discuss.elastic.co/t/elastic-search-setup-analyzers-and-mapping-correctly/35125 "2015-11-20T08:12:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel\_Zakharov](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@Pavel\_Zakharov](https://discuss.elastic.co/u/Pavel_Zakharov)\
**Post date:** [November 20, 2015, 8:12am UTC](https://discuss.elastic.co/t/elastic-search-setup-analyzers-and-mapping-correctly/35125/1 "2015-11-20T08:12:32Z")

</div>

Hi all. I have some problems with setup analyzers in Elastic search. I choose analyzers which i need, but when i start setup in Elastic i have some problems. Analyzers not apply to index and mapping not setup for index  
My Steps :

1. Via Logstash i river data from MSSQL to Elastic Index
2. I setup analyzers
3. I setup mappings  
Maybe i not correct understanding steps order, if need i can to attach files with mapping and analyzer

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [November 20, 2015, 12:21pm UTC](https://discuss.elastic.co/t/elastic-search-setup-analyzers-and-mapping-correctly/35125/2 "2015-11-20T12:21:28Z")

</div>

Hi,

something to try here, although I'm not 100% sure how well this plays together with logstash. Analyzers and Mappings are best specified at index creation time. Since Logstash usually creates indeces when required, you need to make sure that the analyzers and mapping is set for the indeces when they're created. You can do this creating an [index template](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html) that includes the analyzers and the mappings.

If this doesn't help, could you share the analyzer and mapping setup that you are using?

---

<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, 11:36pm UTC](https://discuss.elastic.co/t/elastic-search-setup-analyzers-and-mapping-correctly/35125/3 "2017-07-05T23:36:57Z")

</div>


