lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: How to return results with null values?
Date Fri, 09 Feb 2007 03:14:06 GMT

: > 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?

it scores the same value for all docs that have a field value within the
range -- if the range is unbounded then it will match anything with any
value.  if you are using the QueryParser you can get this behavior with
field:[* TO *] (but i don't remember when that was commited to the trunk,
so your milage may vary)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message