lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben <newread...@gmail.com>
Subject Sorting isn't working for my date field
Date Mon, 21 Feb 2005 15:34:14 GMT
Hi

Do I need to store and index the field I want to sort? Currently I am
only indexing the field without storing nor tokenizing it.

I have a date field indexing as yyyyMMdd and I have two documents with
the same date. When I do my search with:

searcher.search(query, new SortField("date", true));
searcher.search(query, new SortField("date", false));

they both return the same order.

Any idea? Thanks.

Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message