Re: Lucene: Use different Analyzers for different fields ?
Posted By:
Richard_Krenek
Posted On:
Wednesday, June 1, 2005 08:04 PM
I think this is what you are after org.apache.lucene.analysis.PerFieldAnalyzerWrapper
Re: Lucene: Use different Analyzers for different fields ?
Posted By:
Charles_Sanders
Posted On:
Thursday, May 26, 2005 08:14 AM
In our Lucene application, we have handled the multi-language problem by creating separate documents for each language. So, if I'm supporting 3 languages, when I index the document, I add the document to the index 3 times, once for each language. The key field in my index is a number that uniquely identifies the document concatenated with the locale (506enUS, 506frFR, 506jpJP). Our application is locale dependent so I always have the language value. This allows me to send the entire document to the analyzer of my choosing based on locale. I have created my own analyzer which is an extension of the standard analyzer. My analyzer requires a locale value so that it can apply the correct stop words for that language.
Just an idea. This has worked well in our application.