lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey De Smet <ge0ffrey.s...@gmail.com>
Subject Automatic analyzer resolving based on Locale
Date Tue, 08 May 2007 13:13:08 GMT
I have a use case, in which I need to select the Analyzer based on a Locale.
For example:
"nl" => DutchAnalyzer
"nl_BE" => DutchAnalyzer
"fr" => FrenchAnalyzer
"foobar" => StandardAnalyzer (fallback)

I was wondering if lucene has any sort of "AutomaticAnalyzerResolver" 
class that could do this for me?
I 'll write it myself if it doesn't exist, but it might be very handy 
for the community to have this in Lucene's jar, as when new Analyzers 
are added, they could be hooked in automatically.

-- 
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message