lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrzej Bialecki ...@getopt.org>
Subject Re: Using Russian analyzer in Luke
Date Mon, 26 Jan 2004 09:07:59 GMT
Pasha Bizhan wrote:

> Hi, 
> 
> 
>>From: Ivan Kozlov [mailto:theses@mega.rubeg.com] 
>>
>>  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: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message