lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Using Russian analyzer in Luke
Date Sun, 25 Jan 2004 14:22:44 GMT

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


Mime
View raw message