# Language Analyzer single index

**URL:** <https://discuss.elastic.co/t/language-analyzer-single-index/90142>\
**Category:** Elasticsearch\
**Created:** [June 20, 2017, 6:05pm UTC](https://discuss.elastic.co/t/language-analyzer-single-index/90142 "2017-06-20T18:05:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samdash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samdash/32/21628_2.png) [@samdash](https://discuss.elastic.co/u/samdash)\
**Post date:** [June 20, 2017, 6:05pm UTC](https://discuss.elastic.co/t/language-analyzer-single-index/90142/1 "2017-06-20T18:05:06Z")

</div>

language analyzers [https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html)  
Can I have multiple language analyzer for the single index where all my articles are in single index with multiple locales.

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [June 20, 2017, 8:20pm UTC](https://discuss.elastic.co/t/language-analyzer-single-index/90142/2 "2017-06-20T20:20:06Z")

</div>

Yep!

You can define multiple analyzers for a single index. However, a field can only have a single analyzer. So if you want multiple locales, you'll either need multiple fields (`foo_english`, `foo_german`, etc) or use [Multifields](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html)

---

<div class="post-metadata">

**Author:** ![samdash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samdash/32/21628_2.png) [@samdash](https://discuss.elastic.co/u/samdash)\
**Post date:** [June 20, 2017, 8:57pm UTC](https://discuss.elastic.co/t/language-analyzer-single-index/90142/3 "2017-06-20T20:57:27Z")

</div>

Thanks ployfractal,

I have a single meta field called **locale** in the index which differentiates the content from en\_US , ja\_JP..etc  
locale = enUS, or ja\_JP..etc you mean to say i should have something like below.

englishLocale field for english document  
japaneseLocale field for japanese document. and so on?

which is described here : [https://www.elastic.co/guide/en/elasticsearch/guide/current/mixed-lang-fields.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/mixed-lang-fields.html)

---

<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 18, 2017, 8:57pm UTC](https://discuss.elastic.co/t/language-analyzer-single-index/90142/4 "2017-07-18T20:57:41Z")

</div>

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