[ 
https://issues.apache.org/jira/browse/SOLR-11601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Clemens Wyss updated SOLR-11601:
--------------------------------
    Description: 
Im switching my schemas from derprecated solr.LatLonType to 
solr.LatLonPointSpatialField.

Now my sortquery (which used to work with solr.LatLonType):

*sort=geodist(b4_location__geo_si,47.36667,8.55) asc*

raises the error

{color:red}*"sort param could not be parsed as a query, and is not a field that 
exists in the index: geodist(b4_location__geo_si,47.36667,8.55)"*{color}

Invoking sort by 

{color:#14892c}sfield=b4_location__geo_si&pt=47.36667,8.55&sort=geodist() asc

works as expected though...{color}


  was:
Im switching my schemas from derprecated solr.LatLonType to 
solr.LatLonPointSpatialField. Now my sortquery (which used to work with 
solr.LatLonType):

sort=geodist(b4_location__geo_si,47.36667,8.55) asc

raises the error

"sort param could not be parsed as a query, and is not a field that exists in 
the index: geodist(b4_location__geo_si,47.36667,8.55)"

Invoking sort by 

sfield=b4_location__geo_si&pt=47.36667,8.55&sort=geodist() asc

works as expected though...



> solr.LatLonPointSpatialField : sorting by geodist fails
> -------------------------------------------------------
>
>                 Key: SOLR-11601
>                 URL: https://issues.apache.org/jira/browse/SOLR-11601
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.6
>            Reporter: Clemens Wyss
>            Priority: Major
>
> Im switching my schemas from derprecated solr.LatLonType to 
> solr.LatLonPointSpatialField.
> Now my sortquery (which used to work with solr.LatLonType):
> *sort=geodist(b4_location__geo_si,47.36667,8.55) asc*
> raises the error
> {color:red}*"sort param could not be parsed as a query, and is not a field 
> that exists in the index: geodist(b4_location__geo_si,47.36667,8.55)"*{color}
> Invoking sort by 
> {color:#14892c}sfield=b4_location__geo_si&pt=47.36667,8.55&sort=geodist() asc
> works as expected though...{color}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to