lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh" <emailg...@yahoo.co.in>
Subject Re: Multiple sort field
Date Wed, 18 Jul 2012 05:34:04 GMT
Any thoughts on this?

Regards
Ganesh

----- Original Message ----- 
From: "Ganesh" <emailgane@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message