Re: Reverse sorting by index order

2005-11-03 Thread Oren Shir
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. Oren Shir On 11/3/05, Oren Sh

Re: Reverse sorting by index order

2005-11-03 Thread Oren Shir
I use 1.4.3 . Any other options? On 11/3/05, Andy Lee <[EMAIL PROTECTED]> 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 --

Re: Reverse sorting by index order

2005-11-03 Thread Andy Lee
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 -

Re: Reverse sorting by index order

2005-11-03 Thread Oren Shir
Hi, There is no constructor for Sort(SortField, boolean) in Lucene API. Which version are you using? Thanks, Oren Shir On 11/3/05, Andy Lee <[EMAIL PROTECTED]> wrote: > > On Nov 3, 2005, at 9:37 AM, Oren Shir wrote: > > If I understand correctly, when sorting by Sort.INDEXORDER the oldest > > do

Re: Reverse sorting by index order

2005-11-03 Thread Andy Lee
On Nov 3, 2005, at 9:37 AM, Oren Shir wrote: If I understand correctly, when sorting by Sort.INDEXORDER the oldest documents that were added to the index will be returned first. I want the reverse, because I'm more interested in newer documents. Looking at the source, I see that Sort.INDEXOR

Reverse sorting by index order

2005-11-03 Thread Oren Shir
Hi, If I understand correctly, when sorting by Sort.INDEXORDER the oldest documents that were added to the index will be returned first. I want the reverse, because I'm more interested in newer documents. 1) Is there a simple way? 2) Will going over the Hits object in reverse order be much more