Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 77095 invoked from network); 27 Oct 2005 18:17:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Oct 2005 18:17:08 -0000 Received: (qmail 13271 invoked by uid 500); 27 Oct 2005 18:17:03 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 13250 invoked by uid 500); 27 Oct 2005 18:17:02 -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 13239 invoked by uid 99); 27 Oct 2005 18:17:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2005 11:17:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2005 11:17:00 -0700 Received: by ehatchersolutions.com (Postfix, from userid 504) id 1C8F413E2005; Thu, 27 Oct 2005 14:16:37 -0400 (EDT) Received: from [128.143.167.108] (d-128-167-108.bootp.Virginia.EDU [128.143.167.108]) by ehatchersolutions.com (Postfix) with ESMTP id B561913E2005 for ; Thu, 27 Oct 2005 14:16:34 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <13F36D2926AD444697093282F20041B703A6563B@buf-ex01.cymfony.com> References: <13F36D2926AD444697093282F20041B703A6563B@buf-ex01.cymfony.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2A90A8B0-0F2F-4221-8ACA-1EB13F5B02EF@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: How to combine multiple fielded queries in Lucene Date: Thu, 27 Oct 2005 14:16:30 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.734) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 27 Oct 2005, at 11:32, Peter Kim wrote: > If you're using the QueryParser, you just prefix the field-specific > part > with the field. For example, the query in your email should be > submitted > to the query parser as: > > (Title:"baseball" OR Summary:"white sox") AND Publication_date:"199501 > TO 200412" Correction: Publication_date:[199501 TO 200412] > You'll hear this a million times if you're on this mailing list long > enough, but buy Lucene in Action. The time you'll lose without it > is far > more costly than the $30 it'll cost to buy the book. :) Thanks! Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org