Hi,

I have a Lucene 2.9.x app that uses 
org.apache.lucene.analysis.snowball.SnowballAnalyzer for
index generation,

  analyzer = new SnowballAnalyzer("English", StopAnalyzer.ENGLISH_STOP_WORDS);

and I want to upgrade it to 4.1.

SnowballAnalyzer is deprecated in 4.1. The doc simply states

"Deprecated. (3.1) Use the language-specific analyzer in modules/analysis 
instead. This analyzer will be 
removed in Lucene 5.0."

I can't figure out how to rewrite it using 4.1 API. Could you help?

Thanks,
Peng

Reply via email to