lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shrinath.m" <shrinat...@webyog.com>
Subject How do we reverse sort on the docid ?
Date Mon, 16 May 2011 11:49:00 GMT
What I want: 

docids that matched the search string are : 
5
4
3
2
1


 What I am getting : 

docids that matched the search string are : 
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 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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message