Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82E7FED0B for ; Thu, 28 Feb 2013 18:47:22 +0000 (UTC) Received: (qmail 61253 invoked by uid 500); 28 Feb 2013 18:47:20 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 61209 invoked by uid 500); 28 Feb 2013 18:47:20 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 61201 invoked by uid 99); 28 Feb 2013 18:47:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 18:47:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sarowe@gmail.com designates 209.85.128.45 as permitted sender) Received: from [209.85.128.45] (HELO mail-qe0-f45.google.com) (209.85.128.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 18:47:11 +0000 Received: by mail-qe0-f45.google.com with SMTP id b4so1700561qen.32 for ; Thu, 28 Feb 2013 10:46:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=v+Xh2NOzIPHsAtFQSV2o/1kFxpzAWVCnmRoIjC76tno=; b=GSj2e9czk6lNrN7Pa7UYcEQvKFL/sztB+bzBgxoNyckmT2Ri0eEuz5jKgmPdLAHLwM bhFoQrzwcLFMedV6EhxHMmf0ttCo0RLw4bEDn/bB9fmfKVsAh96PMQSH/iRWz3YaCyAz 1/VFeqtReiabhAYAcqqwMTsgRKnS+kAas+k5ywFcnwYGJFtq4lyJ7xrSOAWuvaxz29IJ WmYLbfe90il+h2AYjUaAd08xbIibfuJilxusAkn8w5XOCF9C2Z/Gh2iueRzV2YjTRHDj LKbG6NIPJcOVS/uAY2ICBycYFGIQ1tsPhO/s0T/VjGuQSBVV/+YZi/wPZP7T6JChlZz2 TnfQ== X-Received: by 10.224.33.140 with SMTP id h12mr15684044qad.73.1362077211016; Thu, 28 Feb 2013 10:46:51 -0800 (PST) Received: from [192.168.1.204] (cpe-67-249-104-72.twcny.res.rr.com. [67.249.104.72]) by mx.google.com with ESMTPS id z9sm15412436qae.5.2013.02.28.10.46.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Feb 2013 10:46:50 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Migrating SnowballAnalyzer to 4.1 From: Steve Rowe In-Reply-To: Date: Thu, 28 Feb 2013 13:46:48 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org Hi Peng, Take a look at the release docs: = 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: = Steve On Feb 28, 2013, at 1:28 PM, Peng Gao wrote: > Hi, >=20 > I have a Lucene 2.9.x app that uses = org.apache.lucene.analysis.snowball.SnowballAnalyzer for > index generation, >=20 > analyzer =3D new SnowballAnalyzer("English", = StopAnalyzer.ENGLISH_STOP_WORDS); >=20 > and I want to upgrade it to 4.1. >=20 > SnowballAnalyzer is deprecated in 4.1. The doc simply states >=20 > "Deprecated. (3.1) Use the language-specific analyzer in = modules/analysis instead. This analyzer will be=20 > removed in Lucene 5.0." >=20 > I can't figure out how to rewrite it using 4.1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BD=EF=BF=BD=16=EF=BF=BD=C3=A2=06=EF=BF=BD=17= f=12=EF=BF=BDW6W"=D6=86V=EF=BF=BD=04=06=EF=BF=BDV6V=EF=BF=BDR=EF=BF=BD=17=06= =166=EF=BF=BDR=EF=BF=BD=EF=BF=BD&p=D0=A0=EF=BF=BD --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org