# I18n fields

**URL:** <https://discuss.elastic.co/t/i18n-fields/9819>\
**Category:** Elasticsearch\
**Created:** [November 26, 2012, 12:15am UTC](https://discuss.elastic.co/t/i18n-fields/9819 "2012-11-26T00:15:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danieltribeiro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danieltribeiro/32/2606_2.png) [@danieltribeiro](https://discuss.elastic.co/u/danieltribeiro)\
**Post date:** [November 26, 2012, 12:15am UTC](https://discuss.elastic.co/t/i18n-fields/9819/1 "2012-11-26T00:15:32Z")

</div>

Hi,  
What is the best pratice to index the same field in multiple languages?  
Eg.  
class Hotel {  
public Map\<String, String\> name;  
}  
myHotel.name.put("pt", "Palácio");  
myHotel.name.put("en", "Palace");

I saw some language analyzers, but they can be applied to different fields eg. Two fields: name\_en, name\_pt.

But to index the same "name" field using different analyzers what should I do? Create different indexes, one for each language? Doing this should I send the same object (with only one language) to each index?

Thanks.

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [November 27, 2012, 8:47am UTC](https://discuss.elastic.co/t/i18n-fields/9819/2 "2012-11-27T08:47:56Z")

</div>

> I saw some language analyzers, but they can be applied to different fields  
> eg. Two fields: name\_en, name\_pt.
> 
> But to index the same "name" field using different analyzers what should I  
> do? Create different indexes, one for each language? Doing this should I  
> send the same object (with only one language) to each index?

Use multi-fields. You index the data once as (eg) 'name' then you have  
several multi-fields, each with a different analyzer. You can then  
search in the correct language using (eg) 'name.en', 'name.pt' etc

clint

--

---

<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 6, 2017, 3:02am UTC](https://discuss.elastic.co/t/i18n-fields/9819/3 "2017-07-06T03:02:50Z")

</div>


