Hi Steve,
Thanks for the help. One more question:
Is EnglishAnalyzer a drop-in replacement for SnowballAnalyzer("English", ...),
in terms
of stemming?
Thanks again
Peng
PS
Sorry for the Thread Hijacking. Will behave the next time.
> -----Original Message-----
> From: Steve Rowe [mailto:[email protected]]
> Sent: Thursday, February 28, 2013 10:47 AM
> To: [email protected]
> Subject: Re: Migrating SnowballAnalyzer to 4.1
>
> Hi Peng,
>
> Take a look at the release docs:
> <http://lucene.apache.org/core/4_1_0/index.html>
>
> In particular, in the API Javadocs section, the analyzers-common
> documentation has a large list of per-language analyzers. EnglishAnalyzer
> is under the org.apache.lucene.analysis.en package:
> <http://lucene.apache.org/core/4_1_0/analyzers-
> common/org/apache/lucene/analysis/en/package-summary.html>
>
> Steve
>
> On Feb 28, 2013, at 1:28 PM, Peng Gao <[email protected]> wrote:
>
> > 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
> >
> > Т
> > ХF
> > V 7V'67& &R R â f W6W" V 7V'67& &T V6V R 6 R &pФf "FF F
> > 6 G2 R â f W6W"ֆV V6V R 6 R &pР
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]