lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: How to return results with null values?
Date Wed, 07 Feb 2007 21:59:03 GMT

: 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


Mime
View raw message