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.
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
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
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
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
-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
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
/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
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
).
-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
10 matches
Mail list logo