Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 64245 invoked from network); 18 Jul 2008 22:01:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2008 22:01:46 -0000 Received: (qmail 3489 invoked by uid 500); 18 Jul 2008 22:01:38 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 3450 invoked by uid 500); 18 Jul 2008 22:01:38 -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 3439 invoked by uid 99); 18 Jul 2008 22:01:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 15:01:38 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 22:00:45 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id A176171C45C; Fri, 18 Jul 2008 15:00:39 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 9E0F271C44F for ; Fri, 18 Jul 2008 15:00:39 -0700 (PDT) Date: Fri, 18 Jul 2008 15:00:39 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Boolean expression for no terms OR matching a wildcard In-Reply-To: <7A04AEE6-6697-417D-8E12-50986437597D@gmail.com> Message-ID: References: <7A04AEE6-6697-417D-8E12-50986437597D@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : Maybe this is easier ... suppose what I'm indexing is a phone number, and : there are multiple phone numbers for what I'm indexing under the same field : (phone) and I want the wildcard query to match only records that have either : no phone numbers at all OR where ALL phone numbers are in a specific area code : (e.g. 800* would match all in the 800 area code). i can't think of anyway to accomplish the second part of your query. specificly, given the following records... Doc1: field1:AAA, field1:Aaa, field1:Bb, field1:C, field2:X, field3:Y Doc2: field1:AAA, field1:Aaa, field1:Aa, field2:Z ...i can't think of any type of query like field1:A* which would match Doc2 but not Doc1 (because there are other field1 values that do not start with 'A') -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org