To clarify, a document would look like this :
address: "123 main Street",
country : "US"
What I'd like to do when I configure my index is to apply a set of different stop words to the address field depending on the value of the country. For example, something like this :
If (country == US) -> File1
Else If (country == UK) -> File2
Hopefully, that clarifies.
From: Jörn Franke <[EMAIL PROTECTED]>
Sent: Monday, December 2, 2019 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Is it possible to have different Stop words depending on the value of a field?
You can have different fields by country. I am not sure about your stop words but if they are not occurring in the other languages then you have not a problem.
On the other hand: it you need more than stop words (eg lemmatizing, specialized way of tokenization etc) then you need a different field per language. You don’t describe your full use case, but if you have different fields for different language then your client application needs to handle this (not difficult, but you have to be aware).
Not sure if you need to search a given address in all languages or if you use the language of the user etc.