Java Mailing List Archive

http://www.java2.5341.com/

Home » java-user.lucene »

Newbie Question - Lucene Sorting NOT Ignoring NULL values

Reetha Hariharan

2008-10-14

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I am a newbie.

I just configured lucene using hibernate search. But I find that the sorting
doesn't ignore null values.

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.

How can I achieve this. Is there anywhere I can set the flag in SortField
that specifies it to ignore all the null values ?

Please help.

Thanks
Reetha.
©2008 java2.5341.com - Jax Systems, LLC, U.S.A.