Re: sort multiple fields using solr not working

2014-01-07 Thread Prabhudas
Hi dhanesh, This 'sort'=>array('packageId desc, sortId desc') is not working for me. I am working in the solr version 3.6. What to do? -- View this message in context: http://lucene.472066.n3.nabble.com/sort-multiple-fields-using-solr-not-working-tp2151247p4109936.

Re: sort multiple fields using solr not working

2010-12-27 Thread dhanesh
On 12/27/2010 7:03 PM, Ahmet Arslan wrote: f d Yes exactly you said it. It worked Thanks Ahmet Here is the working code 'sort'=>array('packageId desc, sortId desc') Thanks dhanesh s.r

Re: sort multiple fields using solr not working

2010-12-27 Thread Ahmet Arslan
> Yes it was sint and now i changed to tint > Restarted the solr server > Remove the data from the solr server > Added fresh data for testing. > But not working the sorting. I just noticed, you are supplying multiple sort parameters. That's the problem. There should be only one sort parameter.

Re: sort multiple fields using solr not working

2010-12-27 Thread dhanesh
On 12/27/2010 6:19 PM, Ahmet Arslan wrote: Its an intiger like 1293452485. I changed the solr schema as you specified Restarted the solr server. First sort field sortId desc is working but the second sort field packageId desc is not working Then make packageId tint too, like sortId. By t

Re: sort multiple fields using solr not working

2010-12-27 Thread Ahmet Arslan
> Its an intiger like 1293452485. I changed the solr schema > as you specified > > 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 Then make packageId tint too, like sortId.

Re: sort multiple fields using solr not working

2010-12-27 Thread dhanesh
On 12/27/2010 5:22 PM, Ahmet Arslan wrote: Its an intiger like 1293452485. I changed the solr schema as you specified 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 $addition

Re: sort multiple fields using solr not working

2010-12-27 Thread Ahmet Arslan
> required="false" /> > What is the domain of id set? Integers? Letters? if it is integers use this: if not use: if it is integers use this: Re-start servlet container, re-index.

Re: sort multiple fields using solr not working

2010-12-27 Thread dhanesh
On 12/27/2010 5:15 PM, Ahmet Arslan wrote: id field is the unique field ( id) Okey, but what is its type? There should be something like

Re: sort multiple fields using solr not working

2010-12-27 Thread Ahmet Arslan
> id field is the unique field  ( > id) Okey, but what is its type? There should be something like

Re: sort multiple fields using solr not working

2010-12-27 Thread dhanesh
On 12/27/2010 5:09 PM, Ahmet Arslan wrote: 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('ca

Re: sort multiple fields using solr not working

2010-12-27 Thread Ahmet Arslan
> 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

sort multiple fields using solr not working

2010-12-27 Thread dhanesh
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'=>