Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 63897 invoked from network); 21 Sep 2010 00:01:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Sep 2010 00:01:58 -0000 Received: (qmail 61723 invoked by uid 500); 21 Sep 2010 00:01:57 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 61635 invoked by uid 500); 21 Sep 2010 00:01:57 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 61628 invoked by uid 99); 21 Sep 2010 00:01:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Sep 2010 00:01:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Sep 2010 00:01:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8L01WRe015758 for ; Tue, 21 Sep 2010 00:01:33 GMT Message-ID: <23408998.306621285027292767.JavaMail.jira@thor> Date: Mon, 20 Sep 2010 20:01:32 -0400 (EDT) From: "Yonik Seeley (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (SOLR-2125) Spatial filter is not accurate In-Reply-To: <1899572.306531285026574327.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2125?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12912= 785#action_12912785 ]=20 Yonik Seeley commented on SOLR-2125: ------------------------------------ Just in time Bill! I just started looking at spatial stuff today since I'm planning on putting= some of it in my Lucene Revolution presentation. I've seen some tweets ab= out people having difficulties, and I've had some problems when I tried stu= ff myself. Anyway, I'm going to try and clean up some of this stuff over the next few = days and make the wiki a bit more user oriented - an extra pair of eyeballs= would be welcome! > Spatial filter is not accurate > ------------------------------ > > Key: SOLR-2125 > URL: https://issues.apache.org/jira/browse/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 org.apache.solr.search.function.distance.Constants.EARTH_MEAN_RADIUS_= KM) 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 (=E2=89=883958.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 =3D 220 kilometers > http://....../solr/select?fl=3D*,score&start=3D0&rows=3D10&q=3D{!sfilt%20= fl=3Dstore_lat_lon}&qt=3Dstandard&pt=3D44.9369054,-91.3929348&d=3D280&sort= =3Ddist(2,store,vector(44.9369054,-91.3929348)) asc=20 > Nothing shows. d=3D285 shows results. This is off by a lot. > Bill --=20 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org