On 12/27/2010 5:22 PM, Ahmet Arslan wrote:
<field name="id" type="tint" indexed="true" stored="true" required="true"/>
Its an intiger like 1293452485. I changed the solr schema as you specified

<field name="sortId" type="tint" indexed="true" stored="true" required="true"/>

Restarted the solr server.

First sort field sortId desc is working but the second sort field packageId desc is not working



Here is the query
$additionalParameters     = array(
        'facet'=>'true',
        'facet.field'=>array('category1','subcategory','district'),
'fl'=>'name1,category1,package,district,score,city,description1,sortId', 'fq'=>array('category1:'.$_GET['searchCategory'],'district:'.$_GET['location']),
        'sort'=>array('sortId desc','packageId desc')
);

$results = $solr->search($queries, $start, MAX_ROWS,$additionalParameters );


I appreciate you for the effort that you are spending for me.
regds
dhanesh

Reply via email to