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

Shaun Storey updated SOLR-14802:
--------------------------------
    Description: 
Previously using geo field with type LatLonType you could implement a query like
{code:java}
/select?q=*:*&fl=ID&fq={!geofilt}&d=50&pt=53.4721936,-2.24703&sfield=MAIN_LOCATION&sort=min(geodist(),
 geodist(LOCATION,53.4721936,-2.24703)) asc{code}
to sort results on minium distance from multiple different locations. Moving 
the fields to advised LatLonPointSpatialField gives

"geodist() does not support field names in its arguments when stated fields are 
solr.LatLonPointSpatialField spatial type, requires sfield param instead"

This has been reviewed before SOLR-11601 but not for my actual actual use-case 
so it seems the choice was to just change the error message rather than to 
implement the previous functionality. Can this be re-reviewed or let me know if 
there is another way to achieve the same result.

 

  was:
Previously using geo field with type LatLonType you could implement a query like

*/select?q=**:**&fl=ID&fq=\{!geofilt}&d=50&pt=53.4721936,-2.24703&sfield=MAIN_LOCATION&sort=min(geodist(),
 geodist(LOCATION,53.4721936,-2.24703)) asc*

to sort results on minium distance from multiple different locations. Moving 
the fields to advised LatLonPointSpatialField gives

"geodist() does not support field names in its arguments when stated fields are 
solr.LatLonPointSpatialField spatial type, requires sfield param instead"

This has been reviewed before SOLR-11601 but not for my actual actual use-case 
so it seems the choice was to just change the error message rather than to 
implement the previous functionality. Can this be re-reviewed or let me know if 
there is another way to achieve the same result.

 


> Sorting by min of two geodist functions
> ---------------------------------------
>
>                 Key: SOLR-14802
>                 URL: https://issues.apache.org/jira/browse/SOLR-14802
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: query
>    Affects Versions: 8.6.2
>            Reporter: Shaun Storey
>            Priority: Minor
>
> Previously using geo field with type LatLonType you could implement a query 
> like
> {code:java}
> /select?q=*:*&fl=ID&fq={!geofilt}&d=50&pt=53.4721936,-2.24703&sfield=MAIN_LOCATION&sort=min(geodist(),
>  geodist(LOCATION,53.4721936,-2.24703)) asc{code}
> to sort results on minium distance from multiple different locations. Moving 
> the fields to advised LatLonPointSpatialField gives
> "geodist() does not support field names in its arguments when stated fields 
> are solr.LatLonPointSpatialField spatial type, requires sfield param instead"
> This has been reviewed before SOLR-11601 but not for my actual actual 
> use-case so it seems the choice was to just change the error message rather 
> than to implement the previous functionality. Can this be re-reviewed or let 
> me know if there is another way to achieve the same result.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to