Hi
Can anybody help me to sort multiple fields using solr

Here is the query

    $additionalParameters     = array(
        'facet'=>'true',
        'facet.field'=>array('category','subcategory','district'),
        'fl'=>'name,category,package,district,score,city,description,id',
'fq'=>array('category:'.$_GET['searchCategory'],'district:'.$_GET['location']),
        'sort'=>array('packageId desc', 'id desc')
    );


Above code returns only sorted result based on packageId, but its not sorting with id


My requirement is I need to get last inserted post first and same time I want to group the packages based on some priority

Regds
dhanesh s.r

Reply via email to