Hi there
Context
Within a particular engine I will have documents in multiple languages. e.g
- Document 1 -> english
- Document 2 -> french
- Document 3 -> slovenian
- ...
At the same time, each of those documents could be translated to multiple languages
- Document 1 translated to: spanish and swedish
- Document 2 translated to: english and vietnamese
- Document 3 translated to: english and polish
- ...
An example document outline for document 1 with search fields being name
and description
:
{
"_id": "62d52bd7e82",
"author":"Gerardo Zenobi",
"lang":"en",
"name":"A Course in English",
"description":"<p><span style=\"color: #000000;\">Welcome to our organization! Enjoy your training.</span></p>",
"translations":[
{
"lang":"es",
"name":"Un curso en Español",
"description":"<p>Bienvenidos a nuestra organización! Disfruten su entrenamiento.</p>"
},
{
"lang":"sv",
"description":"<p>Välkommen till vår organisation! Njut av din utbildning.</p>",
"name":"En kurs i svenska"
}
],
"skills":[ "Onboarding" ]
}
Question
As users will search in different languages, given their mother tongue for example, I would like for this content to be surfaced accordingly: how should I model / configure this ?