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

Norman Leutner commented on SOLR-773:
-------------------------------------

Hi,

just a comment on the distance function.

{quote}
So breaking things down, it seems like we basically need to be able to:
1) filter by a bounding box
2) filter by a geo radius (impl could first get the bounding box and narrow 
within that...)
3) sort by distance
4) return the distance
{quote}

Due tue the surface distance on 0° latitude is 111.320 km per 1° longitude,
on 90° latitude it is 0 km per 1° longitude, if you use a rectangle that does 
not include any sphere information,
this would be very inaccurate.

Instead (if not to load intense) some mathematical functions should be used 
here. 
For example you can calculate the distance between a given latitude and 
longitude and another position by calculating 
the radian measure between these two points using the angle to the earth middle.


> Incorporate Local Lucene/Solr
> -----------------------------
>
>                 Key: SOLR-773
>                 URL: https://issues.apache.org/jira/browse/SOLR-773
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: lucene.tar.gz, SOLR-773-local-lucene.patch, 
> SOLR-773-local-lucene.patch, SOLR-773-local-lucene.patch, 
> SOLR-773-local-lucene.patch, SOLR-773-local-lucene.patch, SOLR-773.patch, 
> SOLR-773.patch, spatial-solr.tar.gz
>
>
> Local Lucene has been donated to the Lucene project.  It has some Solr 
> components, but we should evaluate how best to incorporate it into Solr.
> See http://lucene.markmail.org/message/orzro22sqdj3wows?q=LocalLucene

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to