Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 20958 invoked from network); 5 Oct 2006 05:21:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2006 05:21:42 -0000 Received: (qmail 17675 invoked by uid 500); 5 Oct 2006 05:21:35 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 17632 invoked by uid 500); 5 Oct 2006 05:21:35 -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 17621 invoked by uid 99); 5 Oct 2006 05:21:35 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2006 22:21:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [195.212.29.155] ([195.212.29.155:59645] helo=mtagate6.de.ibm.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id C0/CD-20288-C5694254 for ; Wed, 04 Oct 2006 22:21:33 -0700 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.8/8.13.8) with ESMTP id k955LSv2111962 for ; Thu, 5 Oct 2006 05:21:28 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id k955NdLU2977810 for ; Thu, 5 Oct 2006 07:23:39 +0200 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k955LSEM017573 for ; Thu, 5 Oct 2006 07:21:28 +0200 Received: from d12mc102.megacenter.de.ibm.com (d12mc102.megacenter.de.ibm.com [9.149.167.114]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k955LSrL017570 for ; Thu, 5 Oct 2006 07:21:28 +0200 In-Reply-To: Subject: Re: discontinuous range query To: java-user@lucene.apache.org X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 Message-ID: From: Doron Cohen Date: Wed, 4 Oct 2006 21:20:02 -0800 X-MIMETrack: Serialize by Router on D12MC102/12/M/IBM(Release 7.0.1HF269 | June 22, 2006) at 05/10/2006 07:23:39 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > > : The query you want is > : name:[A TO C] name:[G TO K] > : (each clause being SHOULD, or put another way, an implicit "OR" in between. > : > : The problem may be how you analyze the name field... is it tokenized at all? > : If so, you might be matching on first, last, and middle names, and the > : combination of everything may match most of your documents. > > also keep in mind that "C" is lexigraphicaly less then "Chris" so Chris > doesn't fall in the range [A TO C]. > Maybe worth to notice that when combined in a wider query, the (MUST) range part should be 'grouped', as in: content:camera +(price:[102 TO 104] price:[105 TO 107]) --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org