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

David Smiley updated SOLR-4230:
-------------------------------

    Attachment: SOLR-4230_geofilt_and_bbox_support_for_Solr_4_spatial.patch

The attached file implements this support.  Note that the score="distance" 
local-param feature in the Solr 4 spatial field should also work too -- pretty 
cool.

I took a look at adding support for the "geodist" function, which is 
implemented in HaversineConstFunction.  Ugh, the logic therein is convoluted 
and it makes heavy assumptions about a "MultiValueSource" based field which the 
Solr 4 spatial fields don't use and never will.  Adding support here for Solr 4 
spatial fields would definitely be a hack and on top of confusing code that I 
don't want to make any more confusing. So I'll pass on that.

I plan to commit in a few days.
                
> Enhance geofilt and bbox parsers to support Solr 4 spatial field types
> ----------------------------------------------------------------------
>
>                 Key: SOLR-4230
>                 URL: https://issues.apache.org/jira/browse/SOLR-4230
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>            Reporter: David Smiley
>            Assignee: David Smiley
>         Attachments: 
> SOLR-4230_geofilt_and_bbox_support_for_Solr_4_spatial.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to