6 messages in org.apache.lucene.java-userRe: Reverse sorting by index order
FromSent OnAttachments
Oren ShirNov 3, 2005 6:36 am 
Andy LeeNov 3, 2005 6:55 am 
Oren ShirNov 3, 2005 7:21 am 
Andy LeeNov 3, 2005 7:26 am 
Oren ShirNov 3, 2005 7:57 am 
Oren ShirNov 3, 2005 8:30 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Reverse sorting by index orderActions...
From:Oren Shir (sho@gmail.com)
Date:Nov 3, 2005 8:30:33 am
List:org.apache.lucene.java-user

Hi,

I've found the answer. Thanks to Andy Lee for giving me the idea to look inside Lucene's code. The line is

new Sort(new SortField(null, SortField.DOC, true))

What got me confused is the null in the constructor, but I see that's the way it is used in SortField.

I use 1.4.3 . Any other options?

On 11/3/05, Andy Lee <agl@earthlink.net> wrote:

On Nov 3, 2005, at 10:22 AM, Oren Shir wrote:

There is no constructor for Sort(SortField, boolean) in Lucene API. Which version are you using?

I think 1.9rc1. I have a pretty recent svn checkout -- maybe this constructor is new.

--Andy