Pasha Bizhan wrote:

Hi,


From: Ivan Kozlov [mailto:[EMAIL PROTECTED]

 I tryed Luke to try to search in my Lucene database and discovered
 that when I try to select russian analyzer it shows me next error:
 ------


It's Luke's feature. And Russian language specific - 3 (and more) charset
for one language :)


Luke use default ctor for Analyser, but Russian Analyser doesn't contain it.
And German Analyser too -  try Luke and the error will be the same.

You can add this code into RussianAnalyzer.java and enjoy:
public RussianAnalyzer() {
        this.charset = RussianCharsets.UnicodeRussian;
        stoptable =
StopFilter.makeStopTable(makeStopWords(RussianCharsets.UnicodeRussian));
}

Thanks for spotting this bug, and providing a fix. I believe Erik already applied this patch.


If you are using Java WebStart, you will have to wait till I update the version on my website (which will be another couple of days), but in the meantime you can just rebuild Luke from sources, using the latest Lucene.

--
Best regards,
Andrzej Bialecki

-------------------------------------------------
Software Architect, System Integration Specialist
CEN/ISSS EC Workshop, ECIMF project chair
EU FP6 E-Commerce Expert/Evaluator
-------------------------------------------------
FreeBSD developer (http://www.freebsd.org)


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to