How to use search_as_you_type datatype with multiple languages? Best practice/experiences

Hi,

how does one handle the combination of search_as_you_type dataytpe and fields in multiple languages? Or is it not applicable in such a use-case?

For Example:
An index of books has a field book_title and alternative_titles.
One of the books is Harry Potter and the Philosopher’s Stone

book_title:
Harry Potter and the Philosopher’s Stone
alternative_titles:
Harry Potter and the Sorcerer’s Stone
Harry Potter à l'école des sorciers
Harry Potter und der Stein der Weisen
Harry Potter e la pietra filosofale
...

As far as I understand there are 3 options to handle multiple languages:

  1. One Index for each language
  2. Multi-field for each language
  3. Separate fields for each language

Problems with Case 1: How to stop the book from showing up multiple times in the search result, if the search language is not known before?

Problems with 2 and 3: How is the performance of the search affected? Because each search_as_you_type field generates more analyzed fields.

Question:
What kind of mapping is needed in such a use case?

Thankful for any input

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