# Multiple language analyzers for one field

**URL:** <https://discuss.elastic.co/t/multiple-language-analyzers-for-one-field/199271>\
**Category:** Elasticsearch\
**Created:** [September 12, 2019, 2:23pm UTC](https://discuss.elastic.co/t/multiple-language-analyzers-for-one-field/199271 "2019-09-12T14:23:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![May](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@May](https://discuss.elastic.co/u/May)\
**Post date:** [September 12, 2019, 2:23pm UTC](https://discuss.elastic.co/t/multiple-language-analyzers-for-one-field/199271/1 "2019-09-12T14:23:15Z")

</div>

Hi there, I am logstashing a table with a column that contains multiple languages into Elasticsearch. There is another column that can be used to indicate the language. So how can I use different language analyzers for one field given the value of another field? Is this possible? Thanks.

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [September 12, 2019, 5:30pm UTC](https://discuss.elastic.co/t/multiple-language-analyzers-for-one-field/199271/2 "2019-09-12T17:30:50Z")

</div>

Multiple analyzers for one field is not possible. One option is to use a language agnostic analyzer (like StandardAnalyzer) to index all your data in one field. Another is to have a field per language, and either on the client side when constructing json for the document, or in an ingest processor, rename the field based on the language field. Both approaches can also be used.

---

<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:** [October 10, 2019, 5:30pm UTC](https://discuss.elastic.co/t/multiple-language-analyzers-for-one-field/199271/3 "2019-10-10T17:30:52Z")

</div>

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