Hi, I’m trying to find a solution to search only in a given language.
On index time the language is known per string to be tokenized so I would like to write a filter that prefixes each token according to its language. First question: how to pass the language argument to the filter best? I’m going to use multivalued fields, and each value I put in that field has another language. How do I pass several languages on to the filter best? on search side it gets a bit trickier, here I do not know exactly the language of the input query but several possible. So instead of prefixing each token with one language code I need to prefix each token with every possible language code. How do I pass parameters to the filter at query time? I’m not using the URL variant I am using the SolrServer.query(SolrQuery) interface. Jan