Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 28461 invoked from network); 11 Oct 2004 14:32:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Oct 2004 14:32:30 -0000 Received: (qmail 8394 invoked by uid 500); 11 Oct 2004 14:32:22 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 8306 invoked by uid 500); 11 Oct 2004 14:32:21 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 8279 invoked by uid 99); 11 Oct 2004 14:32:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [141.156.69.115] (HELO mail.infosciences.com) (141.156.69.115) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 11 Oct 2004 07:32:18 -0700 Received: from Aviran (unknown [141.156.69.109]) by mail.infosciences.com (Postfix) with ESMTP id ACF3D118308 for ; Mon, 11 Oct 2004 10:32:10 -0400 (EDT) From: "Aviran" To: "'Lucene Users List'" Subject: RE: how to find field that has any value Date: Mon, 11 Oct 2004 10:30:25 -0400 Message-ID: <009401c4af9e$dc07f8a0$6a00a8c0@Aviran> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <264C522BA3BC7941BD1560AD9A17C4FA030C74A9@exdkba023.novo.dk> Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You can try to use a range query something like test:[null TO "zzzzzzzzzzzzzzzz"] Please note that you might get TooManyBooleanClause Exception, if you = have too many of them. The other thing you can use is with the operator NOT. For all the Empty fields you can fill them with a string lest say "empty" and then query = for -test:empty Aviran -----Original Message----- From: MATL (Mats Lindberg) [mailto:matl@nnit.com]=20 Sent: Wednesday, October 06, 2004 16:27 PM To: Lucene Users List Subject: how to find field that has any value Hello =20 i have a probably simple question for some of you. =20 Since lucene does not allow a query to start with a wild card (* or ?) = how would i find all documents in lets say field test that has something in = that field, or is not empty. =20 my first thought would be to do something like this. =20 test:________ (cause the value ______ isn't very likely to be present) =20 =20 test:* (would be the correct way, i guess, but lucene doesn't allow that) =20 =20 does anyone have a greater idea. =20 Best regards, Mats Lindberg --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org