lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pasha Bizhan" <fc...@ok.ru>
Subject RE: Using Russian analyzer in Luke
Date Sun, 25 Jan 2004 19:53:41 GMT
Hi, 

I'm not sure that's rightly. Because Russian unicode charset, KOI charset 
and win1251 charset is equal in use. May be unicode charset is less common.
I guess so Russian Analyser hasn't no-arg constructor.

Pasha Bizhan
http://www.LuceneDotNet.com

> -----Original Message-----
> From: Erik Hatcher [mailto:erik@ehatchersolutions.com] 
> Sent: Sunday, January 25, 2004 17:23
> To: Lucene Users List
> Subject: Re: Using Russian analyzer in Luke
> 
> 
> On Jan 24, 2004, at 6:44 PM, Pasha Bizhan wrote:
> > 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)
> > )
> > ;
> > }
> >
> 
> GermanAnalyzer has a no-arg constructor - Luke can use it 
> fine.  I've just added the no-arg constructor to the 
> RussianAnalyzer as you've specified above.  Thanks!
> 
> 	Erik
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.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