lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From poeta simbolista <poetasimboli...@gmail.com>
Subject Re: How to return results with null values?
Date Thu, 08 Feb 2007 18:08:05 GMT


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


Mime
View raw message