lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Gazzarini <a.gazzar...@gmail.com>
Subject Re: sort by a copy field error
Date Tue, 14 Apr 2015 18:46:50 GMT
Hi Pedro
Please post the request that produces that error

Andrea
On 14 Apr 2015 19:33, "Pedro Figueiredo" <pjlfigueiredo@criticalsoftware.com>
wrote:

> Hello,
>
>
>
> I have a pretty basic question:  how can I sort by a copyfield?
>
>
>
> My schema conf is:
>
>
>
> <field name="name" type="text_general_edge_ngram" indexed="true"
> stored="true" omitNorms="true" termVectors="true"/>
>
> <field name="name_sort" type="string" indexed="true" stored="false"/>
>
> <copyField source="name" dest="name_sort" />
>
>
>
> 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
>
>   }
>
>
>
> Thanks in advanced,
>
>
>
> Pedro Figueiredo
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message