Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 95269 invoked from network); 8 Feb 2007 18:08:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2007 18:08:37 -0000 Received: (qmail 65156 invoked by uid 500); 8 Feb 2007 18:08:37 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 65130 invoked by uid 500); 8 Feb 2007 18:08:37 -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 65119 invoked by uid 99); 8 Feb 2007 18:08:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 10:08:36 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 10:08:26 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HFDgj-0004PE-TM for java-user@lucene.apache.org; Thu, 08 Feb 2007 10:08:05 -0800 Message-ID: <8870825.post@talk.nabble.com> Date: Thu, 8 Feb 2007 10:08:05 -0800 (PST) From: poeta simbolista To: java-user@lucene.apache.org Subject: Re: How to return results with null values? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: poetasimbolista@gmail.com References: <8844779.post@talk.nabble.com> <8847539.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Chris Hostetter wrote: > > I'm not sure wether this question is about docs that have no value for a > field, or docs where the value of the field is null - > The former. Chris Hostetter wrote: > > adding a filter on that Field that requires *some* value might help. > Yep, that is what I would like. Chris Hostetter wrote: > > take a look at RangeFilter and set both the upper and lower terms to be > null -- > or if you need a Query and can't use a filter, do the same thing with > ConstantScoreRangeQuery. > This is like, it scores sth for each document that has a field, no matter the content? Chris Hostetter wrote: > > > : A newbie here, but I would think that fields will null value will slow > : down the search as much as fields with a specific non-conflicting > keyword. > : There is still a field to be looked at, even if it does not match. > > i believe you are correct ... it doesn't matter wether the Field value is > null or "" or "some_magic__toKen_$" it's still an instance of a term. > > Of course, not adding that Field value at all would actually make things a > lot better. > > I'm not sure wether this question is about docs that have no value for a > field, or docs where the value of the field is null -- but either way > adding a filter on that Field that requires *some* value might help. take > a look at RangeFilter and set both the upper and lower terms to be null -- > or if you need a Query and can't use a filter, do the same thing with > ConstantScoreRangeQuery. > > if what you mean by bull is really "" then you can still do the same thing > using "" as your lower term but don't be inclusive of the lower term. > > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > > -- View this message in context: http://www.nabble.com/How-to-return-results-with-null-values--tf3186799.html#a8870825 Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org