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: How do we reverse sort on the docid ?

2011-05-16 Thread Erick Erickson
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 message in context: http://lucene.472066.n3.nabble.com/How-do-we-reverse-sort-on-the-docid-tp2947495p2947495.html

Re: How do we reverse sort on the docid ?

2011-05-16 Thread shrinath.m
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... -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-we-reverse-sort

Re: How do we reverse sort on the docid ?

2011-05-16 Thread Erick Erickson
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... -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-we-reverse-sort-on-the-docid-tp2947495p2947572.html Sent from the Lucene - Java

Re: How do we reverse sort on the docid ?

2011-05-16 Thread shrinath.m
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 Users mailing list archive at Nabble.com

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 you need to do is specify the reverse boolean

Re: How do we reverse sort on the docid ?

2011-05-16 Thread Alexander Aristov
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'tor??? Best Erick The true in `Sort srt = new Sort(new SortField(null,SortField.DOC,true)); ` actually is the reverse

Re: How do we reverse sort on the docid ?

2011-05-16 Thread shrinath.m
/SendEmail.jtp?type=nodenode=2949011i=2] Sent: Monday, May 16, 2011 2:30 PM To: [hidden email]http://user/SendEmail.jtp?type=nodenode=2949011i=3 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

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(query, filter, sorter); When order = false, I correctly get the results sorted from

Re: reverse sort

2005-11-28 Thread Yonik Seeley
). -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 = indexSearcher.search(query, filter, sorter); When order