lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gora Mohanty <g...@mimirtech.com>
Subject Re: how to sort multiple fields using solr
Date Mon, 27 Dec 2010 10:27:02 GMT
On Mon, Dec 27, 2010 at 3:51 PM, dhanesh vtc <dhanesh@vtc.com> wrote:
> Hi,
> How can I sort  a search result based on  multiple  fields.
> I've two fields id and packageId for sorting
> My code is like 'sort'=>'packageId desc','sort'=>'id desc'
> But its sorting works only one field.
> Any idea??
[...]

This question is better addressed to the Solr user mailing
list, not the dev list.

Sorting can work on multiple fields: Please see:
http://lucene.apache.org/solr/tutorial.html#Sorting for such
an example.

Regards,
Gora

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


Mime
View raw message