[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-user
Subject:    Re: Using Russian analyzer in Luke
From:       Andrzej Bialecki <ab () getopt ! org>
Date:       2004-01-26 9:07:59
Message-ID: 4014D8EF.9010804 () getopt ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic