lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Newbie Question - Lucene Sorting NOT Ignoring NULL values
Date Tue, 14 Oct 2008 15:11:12 GMT
On Tue, Oct 14, 2008 at 4:35 AM, Reetha Hariharan <reethahari@gmail.com> wrote:
> I am searching using one field, say X and want to sort the results using
> another, say Y (Which can have null values). But I am expecting Sort to
> ignore all the null values and just sort only records that has values in Y
> field.

Do you want docs with null (missing) values in the results or not?
If so, they need to go somewhere (before or after the others).
If you don't want those docs at all, exclude them in the query, or
with a filter.

-Yonik

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