Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 52018 invoked from network); 8 Sep 2010 20:52:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Sep 2010 20:52:18 -0000 Received: (qmail 81460 invoked by uid 500); 8 Sep 2010 20:52:18 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 81392 invoked by uid 500); 8 Sep 2010 20:52:18 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 81385 invoked by uid 99); 8 Sep 2010 20:52:18 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 20:52:18 +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.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 20:52:00 +0000 Received: from eosnew.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 78348287; Wed, 8 Sep 2010 20:51:31 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Wed, 08 Sep 2010 20:51:31 -0000 Message-ID: <20100908205131.18925.15647@eosnew.apache.org> Subject: =?utf-8?q?=5BSolr_Wiki=5D_Update_of_=22FunctionQuery=22_by_GrantIngersoll?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for chan= ge notification. The "FunctionQuery" page has been changed by GrantIngersoll. http://wiki.apache.org/solr/FunctionQuery?action=3Ddiff&rev1=3D65&rev2=3D66 -------------------------------------------------- Signature: hsin(radius, x1,y1,x2,y2, {true|false}), ghhsin(radius, hash1,= hash2) //pre SOLR-1131, the radius was the last value. If the last value is true, then hsin will convert the input values from d= egrees to radians. = - Example: hsin(x, y, 0, 0, 1) - Calculate the haversine distance between t= he lat/lon 0, 0 and the values in field x,y with a radius of 1. + Example: hsin(2, x, y, 0, 0, 1) - Calculate the haversine distance betwee= n the lat/lon 0, 0 on a sphere of radius 2 and the values in field x,y with= a radius of 1. = =3D=3D geohash - Convert to geohash =3D=3D Given a latitude and longitude (in degrees, not radians), convert them to= a Geohash. See http://en.wikipedia.org/wiki/Geohash.