Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 30408 invoked from network); 22 Sep 2010 03:45:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Sep 2010 03:45:17 -0000 Received: (qmail 39971 invoked by uid 500); 22 Sep 2010 03:45:16 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 39806 invoked by uid 500); 22 Sep 2010 03:45:14 -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 39798 invoked by uid 99); 22 Sep 2010 03:45:14 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 03:45:14 +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; Wed, 22 Sep 2010 03:44:56 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8M3iZKR029394 for ; Wed, 22 Sep 2010 03:44:35 GMT Message-ID: <8586535.333681285127075366.JavaMail.jira@thor> Date: Tue, 21 Sep 2010 23:44:35 -0400 (EDT) From: "Bill Bell (JIRA)" To: dev@lucene.apache.org Subject: [jira] Issue Comment Edited: (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=3D12913= 368#action_12913368 ]=20 Bill Bell edited comment on SOLR-2125 at 9/21/10 11:43 PM: ----------------------------------------------------------- Fixed the distance calc for box. We still need to take the results and do a= hsin() was (Author: billnbell): Fixed old version =20 > 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 > Assignee: Grant Ingersoll > Attachments: Distance.diff, solrspatial.xlsx > > > 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