I'd like to archive the following: Based on a users language, a different search analyzer should be used on every field with a certain pattern (language_fieldname*).
I could archive this defining a search analyzer on query time.
However, as I search across many fields using the query string query, this would result in using this analyzer for every field but for some fields the analyzer defined by its mapping should be used.
Is there a solution to solve this problem? Is there maybe a way to define different search analyzers for the same field and I could search on the field "language_fieldname_de" for German users and "language_fieldname_fr" for French users without having to actually use two fields (which would work, but i'd have to store every field for every possible language).
The reason for this request is the usage of translation synonyms: On index-time, only one language should be indexed and translation synonyms should be resolved language dependent on query time.
Thanks in advance,