# One language per document and multiple languages per index

**URL:** <https://discuss.elastic.co/t/one-language-per-document-and-multiple-languages-per-index/69267>\
**Category:** Elasticsearch\
**Created:** [December 16, 2016, 8:53am UTC](https://discuss.elastic.co/t/one-language-per-document-and-multiple-languages-per-index/69267 "2016-12-16T08:53:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WimVergouwe](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@WimVergouwe](https://discuss.elastic.co/u/WimVergouwe)\
**Post date:** [December 16, 2016, 8:53am UTC](https://discuss.elastic.co/t/one-language-per-document-and-multiple-languages-per-index/69267/1 "2016-12-16T08:53:25Z")

</div>

I'm trying to figure out how to handle stemming for a lot of different languages.  
I can only use a single index because of a parent-child join at query time.

I would like to stick to a single language per document as recommended on [https://www.elastic.co/guide/en/elasticsearch/guide/current/one-lang-docs.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/one-lang-docs.html). I don't want to add all language analyzers to a multi field because that would imply too much analyzing overhead.

Isn't there some kind of solution to base the analyzer on the document language?  
e.g. set a default analyzer on the document and reference that analyzer from the field.

What do you guys think?

---

<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:** [January 13, 2017, 8:53am UTC](https://discuss.elastic.co/t/one-language-per-document-and-multiple-languages-per-index/69267/2 "2017-01-13T08:53:37Z")

</div>

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