Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 92475 invoked from network); 24 Feb 2011 15:55:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2011 15:55:02 -0000 Received: (qmail 40575 invoked by uid 500); 24 Feb 2011 15:55:01 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 40044 invoked by uid 500); 24 Feb 2011 15:54:57 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 40037 invoked by uid 99); 24 Feb 2011 15:54:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Feb 2011 15:54:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryantxu@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-iw0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Feb 2011 15:54:51 +0000 Received: by iwr19 with SMTP id 19so457888iwr.35 for ; Thu, 24 Feb 2011 07:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=+tSzr2UL5b9cAvdUGfXg3FyBrTM2H0dRAjP+JbXcuLY=; b=syaDyPRrKO85+twkhJ7tfAIedqPgggwqD/iwgr1BkrsFcFwTm/FSgrqrPGa+gPFPcU nKn/isCCw2cUNbHIDpsSENK/27VOxMqwPiDCcv2A8T75oM/N/Ak1F2aX2+EwVYht2uD0 ZW5RMoKQtO7T44CHqPaUfsZ1t4x2Fe/BWpJTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=wdUD/VurIHwJpcPL/9GzWclkxTJqOmjAT+2suwFZACyj1d7zq4i//APe9mAlfZhVDM RzyB45q5HDYW3NB9bFvBuYa3wT/t5B9GdtLEn+LlM619IvkSMkY3yBHTtemtbmsYt/2s noDlT9DlFqRMhUS6HlMXzXQP4oyjQlytWEaiU= MIME-Version: 1.0 Received: by 10.231.145.68 with SMTP id c4mr1680456ibv.47.1298562866592; Thu, 24 Feb 2011 07:54:26 -0800 (PST) Received: by 10.231.199.74 with HTTP; Thu, 24 Feb 2011 07:54:26 -0800 (PST) In-Reply-To: <4893A353-9F9B-4780-9844-2011E71C9B0E@cominvent.com> References: <4893A353-9F9B-4780-9844-2011E71C9B0E@cominvent.com> Date: Thu, 24 Feb 2011 10:54:26 -0500 Message-ID: Subject: Re: Example schema - fieldType phonetic From: Ryan McKinley To: dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The DoubleMetaphoneEncoder is slightly different then the standard Encoder-- it has two phonetic options rather then one. Using the DoubleMetaphoneFilter will use both versions: String primaryPhoneticValue =3D encoder.doubleMetaphone(v); String alternatePhoneticValue =3D encoder.doubleMetaphone(v, true); if you use the PhoneticFilter, it will just use one: String v =3D encoder.encode(value).toString(); in this case that is the primaryPhoneticValue On Thu, Feb 24, 2011 at 5:07 AM, Jan H=F8ydahl wrote: > Hi, > > The fieldtype "phonetic" is currently defined as > > =A0 =A0 > =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 > =A0 =A0 > > But isn't it more "correct" using PhoneticFilterFactory? > > > -- > Jan H=F8ydahl > Gr=FCnder & senior architect > Cominvent AS, Stabekk, Norway > www.cominvent.com > +47 90125809 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org