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.
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
> 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.
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
> 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.
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
> 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.
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
> id field is the unique field (
> id)
Okey, but what is its type? There should be something like
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
> 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
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'=>
12 matches
Mail list logo