I18n fields

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.

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

--