Why do you want to do this? the internal doc ids are transient. If you update a document by delete/add, the internal id will now be different. What I'm getting at is that I'd like to be sure the use case here does what you think it will because this smells like an XY problem, see: http://people.apache.org/~hossman/#xyproblem
Best Erick On Mon, May 16, 2011 at 7:49 AM, shrinath.m <shrinat...@webyog.com> wrote: > 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. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org