Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 27598 invoked from network); 22 Jun 2005 18:02:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2005 18:02:11 -0000 Received: (qmail 31936 invoked by uid 500); 22 Jun 2005 18:02:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 31774 invoked by uid 500); 22 Jun 2005 18:02:05 -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 31760 invoked by uid 99); 22 Jun 2005 18:02:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2005 11:02:05 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of george.abraham.lists@gmail.com designates 64.233.170.192 as permitted sender) Received: from [64.233.170.192] (HELO rproxy.gmail.com) (64.233.170.192) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2005 11:02:06 -0700 Received: by rproxy.gmail.com with SMTP id g11so166460rne for ; Wed, 22 Jun 2005 11:02:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dGLytIr2jD7U4F+JthXF9HWij6R22srVPUStUNPOKfuJKFIBaQDallba/cSOlYydIhtcbmzyqgBWjNqr1b1s6cz7nhNBXh8p0zxcV70z3GU5F5DbAi7quuxlQpBnTQcdBnfkDjsNO5dDXP7qo516HJN7BqJW8439pv7SvBqiG6s= Received: by 10.38.152.42 with SMTP id z42mr460264rnd; Wed, 22 Jun 2005 11:02:04 -0700 (PDT) Received: by 10.38.10.62 with HTTP; Wed, 22 Jun 2005 11:02:04 -0700 (PDT) Message-ID: <5fca8ecd050622110278aaf3dd@mail.gmail.com> Date: Wed, 22 Jun 2005 14:02:04 -0400 From: George Abraham Reply-To: George Abraham To: java-user@lucene.apache.org Subject: Re: querying multiple fields In-Reply-To: <684FA0EE-D73E-4FB2-A032-280D5F8D054B@ehatchersolutions.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5fca8ecd0506220749225221d8@mail.gmail.com> <20050622170235.37923.qmail@web31114.mail.mud.yahoo.com> <5fca8ecd050622102423fe8921@mail.gmail.com> <684FA0EE-D73E-4FB2-A032-280D5F8D054B@ehatchersolutions.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Erik, That worked like a charm. It seems to me that reading up on the different analyzers would solve a lot of questions in my mind. Unfortunately your book has not arrived yet from Amazon. Aarrgh! Thanks a ton! George > Your analyzer is eating the ImageExistsBit:1 because "1" returns no > tokens through StopAnalyzer. Here's a solution, adapted from the > code that powers lucenebook.com. Use this as your analyzer: >=20 > PerFieldAnalyzerWrapper analyzer =3D new PerFieldAnalyzerWrapper > (new StopAnalyzer()); > analyzer.addAnalyzer("ImageExistsBit", new WhitespaceAnalyzer()); >=20 > That should do the trick. >=20 > Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org