Hello,

Yes I restart solr and re-index after the change.
The request is:
http://localhost:8983/solr/patientsCollection/select?q=*%3A*&sort=name_sort+asc&wt=json&indent=true&_=1429082874881

I am using the solr console admin and in the "query" option I just define the 
field sort with "name_sort asc".

thanks!

Pedro Figueiredo
Senior Engineer

pjlfigueir...@criticalsoftware.com
M. 934058150
 

Rua Engº Frederico Ulrich, nº 2650 4470-605 Moreira da Maia, Portugal
T. +351 229 446 927 | F. +351 229 446 929
www.criticalsoftware.com

PORTUGAL | UK | GERMANY | USA | BRAZIL | MOZAMBIQUE | ANGOLA
A CMMI® LEVEL 5 RATED COMPANY CMMI® is registered in the USPTO by CMU"
 


-----Original Message-----
From: Shawn Heisey [mailto:apa...@elyograg.org] 
Sent: 14 April 2015 19:44
To: solr-user@lucene.apache.org
Subject: Re: sort by a copy field error

On 4/14/2015 11:32 AM, Pedro Figueiredo wrote:
> And when I try to sort by "name_sort" the following error is raised: 
>
> "error": {
>
>     "msg": "sort param field can't be found: name_sort",
>
>     "code": 400
>
>   }

What was the exact sort parameter you sent to Solr?

Did you reload the core or restart Solr and then reindex after you changed your 
schema?  A reindex will be required.

http://wiki.apache.org/solr/HowToReindex

Thanks,
Shawn

Reply via email to