What comes out int he Solr logs? Nothing's jumping out at me here.

What version of Solr are you using? What is your GEOLOCATION field type?

Best,
Erick

On Thu, Apr 2, 2015 at 2:20 PM, Niraj <niroj.off...@gmail.com> wrote:
> *Objective: To find out all locations those are present within 1 KM of the
> specified reference point, sorted by the distance from the reference*
>
> curl -i --globoff --negotiate -u XXX:XXX -XGET  -H "Accept:
> application/json" \
> -X GET
> "http://xxxxxx:8983/solr/loc_data/select?q=*:*&wt=json&indent=true&start=0&rows=1000&fq=%7B!geofilt%7D&sfield=GEO_LOCATION&pt=25.8227920532,-80.1314697266&d=1&sort=geodist()+asc"
>
>
> ------------------------------------------------------------------------------------------
> {
>   "responseHeader":{
>     "status":400,
>     "QTime":1,
>     "params":{
>       "d":"1",
>       "sort":"geodist() asc",
>       "indent":"true",
>       "start":"0",
>       "q":"*:*",
>       "sfield":"GEO_LOCATION",
>       "pt":"25.8227920532,-80.1314697266",
>       "doAs":"*****",
>       "wt":"json",
>       "fq":"{!geofilt}",
>       "rows":"1000"}},
>   "error":{
>     "msg":"*sort param could not be parsed as a query, and is not a field
> that exists in the index: geodist()"*,
>     "code":400}}
>
> Please note that, the query works properly without the geodist() function.
> I am newbie to Solr. Please help.
>
> Regards,
> Niraj
>
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/sort-param-could-not-be-parsed-as-a-query-and-is-not-a-field-that-exists-in-the-index-geodist-tp4197350.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to