> Any thoughts on this? Patience ...
> Is it good to use multiple sort fields? Absolutely, if that's what you need. On the other hand, if you don't need it then it's a bad idea. > Using sort on docid will consume any memory? Don't know. Certainly won't use less than not sorting this way. > Is there any other way out to acheive this. If you could get a full timestamp you could index it as a NumericField and sort on that. Or you could add some value to the existing timestamp to make each one unique. Probably other ways too but that's all I can think of right now. -- Ian. On Wed, Jul 18, 2012 at 6:34 AM, Ganesh <emailg...@yahoo.co.in> wrote: > Any thoughts on this? > > Regards > Ganesh > > ----- Original Message ----- > From: "Ganesh" <emailg...@yahoo.co.in> > To: <java-user@lucene.apache.org> > Sent: Tuesday, July 17, 2012 4:23 PM > Subject: [Bulk] Multiple sort field > > > Hello all, > > I have more than one record having same time stamp. When i sort by date time > in decending order, the set of records which have same time stamp are > displayed in the order of insertion. Basically it is displayed with > asscending order of docid. But i want the reverse of that. > > Consider the below set of records. > record_1 201207170101 > record_2 201207170101 > record_3 201207170102 > record_4 201207170102 > > After search, it displays the results in below order > record_3 201207170102 > record_4 201207170102 > record_1 201207170101 > record_2 201207170101 > > But i want, sort on date time and again sort on docid in reverse order. > record_4 201207170102 > record_3 201207170102 > record_2 201207170101 > record_1 201207170101 > > Is it good to use multiple sort fields? Using sort on docid will consume any > memory? Is there any other way out to acheive this. > > Regards > Ganesh > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org