Would specifying "reverse" work, like

*Sort<file:///C:/lucene-2.1.0/docs/api/org/apache/lucene/search/Sort.html#Sort%28java.lang.String,%20boolean%29>
*(String <http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html> field,
boolean reverse)


where the field is your timeOfIndexing field?

You are guaranteed that document ID order is invariant, even though
the IDs may change. That is, for any two documents if doc1 was
indexed before doc2, docID1 < docID2.

Although I don't see any way to specify a sort object that
reverses the INDEX_ORDER... hmmmm...

Erick

On 5/26/07, jafarim <[EMAIL PROTECTED]> wrote:

Hi folks,

- I am wondering whether there is any mechanism to specify the sorting
direction (i.e. ascending/descending) without being obliged to make a
custom
Sorter. I add a "timeOfIndexing" field in order that I can retrive results
based ob recentness later. But the sorter sorts in an ascending manner and
hence, old results are top results.

- Can I count on Sorter.INDEX_ORDER instead of "timeOfIndexing" field for
this purpose?

regards,
--jaf

Reply via email to