# Supporting multiple languages in elasticsearch

**URL:** <https://discuss.elastic.co/t/supporting-multiple-languages-in-elasticsearch/236369>\
**Category:** Elasticsearch\
**Created:** [June 9, 2020, 3:03pm UTC](https://discuss.elastic.co/t/supporting-multiple-languages-in-elasticsearch/236369 "2020-06-09T15:03:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thekradev](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@thekradev](https://discuss.elastic.co/u/thekradev)\
**Post date:** [June 9, 2020, 3:03pm UTC](https://discuss.elastic.co/t/supporting-multiple-languages-in-elasticsearch/236369/1 "2020-06-09T15:03:08Z")

</div>

I want to know how to return the response based on site language. for example:

```auto
"name": {
       "en": "Berlin",
       "nl": "Berlijn",
}

```

The site language is "nl", so the name field value should be return as "Berlijn" Is that possible to implement in elasticsearch?

note that I want the user to search in both language but the response value will show based on site language.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 9, 2020, 3:35pm UTC](https://discuss.elastic.co/t/supporting-multiple-languages-in-elasticsearch/236369/2 "2020-06-09T15:35:19Z")

</div>

I believe this is something you better solve in your application as probably you are not exposing directly elasticsearch to the end user, right?

But if you really want to, you might want to use `filter_path`: [https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#common-options-response-filtering](https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#common-options-response-filtering)

Like

```
GET /_search?q=elasticsearch&filter_path=hits.hits._source.name.nl
```

---

<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 7, 2020, 3:35pm UTC](https://discuss.elastic.co/t/supporting-multiple-languages-in-elasticsearch/236369/3 "2020-07-07T15:35:25Z")

</div>

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