lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Bell (JIRA)" <>
Subject [jira] Created: (SOLR-2125) Spatial filter is not accurate
Date Mon, 20 Sep 2010 23:49:34 GMT
Spatial filter is not accurate

                 Key: SOLR-2125
             Project: Solr
          Issue Type: Bug
          Components: Build
    Affects Versions: 1.5
            Reporter: Bill Bell

The calculations of distance appears to be off.

Note: "The radius of the sphere to be used when calculating distances on a sphere (i.e. haversine).
Default is the Earth's mean radius in kilometers (see
which is set to 3,958.761458084784856. Most applications will not need to set this."

The radius of the earth in KM is  6371.009 km (≈3958.761 mi).

Also filtering distance appears to be off - example data:

45.17614,-93.87341 to 44.9369054,-91.3929348 Approx 137 miles Google. 169 miles = 220 kilometers


Nothing shows. d=285 shows results. This is off by a lot.


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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message