Re: How do we reverse sort on the docid ?

2011-05-16 Thread shrinath.m
idden email]<http://user/SendEmail.jtp?type=node&node=2949011&i=1> > > > > > > > -Original Message- > > > From: shrinath.m [mailto:[hidden > > > email]<http://user/SendEmail.jtp?type=node&node=2949011&i=2>] > > > &g

Re: How do we reverse sort on the docid ?

2011-05-16 Thread Alexander Aristov
; > To: java-user@lucene.apache.org > > Subject: Re: How do we reverse sort on the docid ? > > > > > > Erick Erickson wrote: > > > > > > At any rate, I think all you need to do is specify the reverse boolean > > > in the SortField c&

RE: How do we reverse sort on the docid ?

2011-05-16 Thread Uwe Schindler
> -Original Message- > From: shrinath.m [mailto:shrinat...@webyog.com] > Sent: Monday, May 16, 2011 2:30 PM > To: java-user@lucene.apache.org > Subject: Re: How do we reverse sort on the docid ? > > > Erick Erickson wrote: > > > > At any rate, I think all y

Re: How do we reverse sort on the docid ?

2011-05-16 Thread shrinath.m
boolean sort field. So it is turned on, but look at my original question, what I am getting is not what I desire. :( -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-we-reverse-sort-on-the-docid-tp2947495p2947629.html Sent from the Lucene - Java U

Re: How do we reverse sort on the docid ?

2011-05-16 Thread Erick Erickson
can be on any field for that instance, the way it works is the > same. > > so stress in the question is on how to do it, not which field I do it on... > > Apologies for not being clear in the question, I tried to keep it very > simple, but failed to give essential info... > >

Re: How do we reverse sort on the docid ?

2011-05-16 Thread shrinath.m
context: http://lucene.472066.n3.nabble.com/How-do-we-reverse-sort-on-the-docid-tp2947495p2947572.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: java-user-unsubscr...@lucene.a

Re: How do we reverse sort on the docid ?

2011-05-16 Thread Erick Erickson
: > 999 > 998 > 997 > 996 > 995 > > > I am lucene sort object, and it is constructed like this : > Sort srt = new Sort(new SortField(null,SortField.DOC,true)); > > How do I get what I want ? Do I really need to use sort ? > > -- > View this me

How do we reverse sort on the docid ?

2011-05-16 Thread shrinath.m
what I want ? Do I really need to use sort ? -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-we-reverse-sort-on-the-docid-tp2947495p2947495.html Sent from the Lucene - Java Users mailing list archive at Nabble.com.

Re: reverse sort

2005-11-28 Thread Yonik Seeley
fixes). -Yonik On 11/28/05, Michael Pow <[EMAIL PROTECTED]> wrote: > I'm trying to reverse sort a result set by it's date field (MMDDhhmm). > > pseudocode: > Boolean order = {false | true}; > Sort sorter = new Sort(new SortField("date", order)); > hits =

reverse sort

2005-11-28 Thread Michael Pow
I'm trying to reverse sort a result set by it's date field (MMDDhhmm). pseudocode: Boolean order = {false | true}; Sort sorter = new Sort(new SortField("date", order)); hits = indexSearcher.search(, , sorter); When order = false, I correctly get the results sorted fro