I am trying to figure out gow to index the following in ES.
I have documents representing location names (geonames.org). Each
document has a category such as Airport, restaurant, river, beach
I have translated the categories in 25 languages. For each document I
want to add the translated categories.
Should I :
- create 1 field per category translation and use a different
analyzer with different language for each categroy field ?
- create 1 general category object field with an array of
translations ... in that case how should I set analysis ?
- do it some other way I am not aware of ?
Bonus question : I also need to do multi language querying ... so a
french person will query "Aéroport de Genève" but an english person
will query "Geneva Airport" and chinese person will query "" in their own language etc ... Is there
something special I need to do to build the query so that we get the
best combination of location name and category hit?
Many thanks for your answers !