[ 
https://issues.apache.org/jira/browse/SOLR-11300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16154352#comment-16154352
 ] 

David Smiley commented on SOLR-11300:
-------------------------------------

Can you please be more clear on what query works with LatLonType but not with 
LatLonPointSpatialField?

Simply looking at the code, it appears that {{exists(latLon)}} would have 
erroneously returned true always.  I don't see a {{default(...)}} function 
query aka ValueSource.

> LatLonPointSpatialField does not implement getValueSource()
> -----------------------------------------------------------
>
>                 Key: SOLR-11300
>                 URL: https://issues.apache.org/jira/browse/SOLR-11300
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: spatial
>    Affects Versions: 6.5, 6.6
>            Reporter: Ben DeMott
>
>                     LatLonPointSpatialField replaces LatLonPoint 
>                     Documented in SOLR-10039
>                  
>                     LatLonPointSpatialField doesn't implement 
> getValueSource(), which causes any
>                     query function like (*exists*, *default*, etc) to raise 
> ...
>                     {{"A ValueSource isn't directly available from this 
> field. Instead try a query using the distance as the score."}}
>                     Which is defined in the abstract class here:
>                     
> https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/schema/AbstractSpatialFieldType.java#L330
>                     
>                     Note that query functions like this worked with 
> LatLonPoint.



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

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

Reply via email to