lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "FunctionQuery" by GrantIngersoll
Date Wed, 08 Sep 2010 22:42:38 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "FunctionQuery" page has been changed by GrantIngersoll.
http://wiki.apache.org/solr/FunctionQuery?action=diff&rev1=66&rev2=67

--------------------------------------------------

  
  '''Values must be in Radians'''.  See the rad() function. Please note Haversine distance
has known problems with antipodal values.  See the Wikipedia page for details.
  
- Signature: hsin(radius, x1,y1,x2,y2, {true|false}), ghhsin(radius, hash1, hash2) //pre SOLR-1131,
the radius was the last value.
+ Signature: hsin(radius, true|false, x1,y1,x2,y2), 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 degrees to radians.
+ The boolean value determines whether hsin will automatically convert the input values from
degrees to radians.  See https://issues.apache.org/jira/browse/SOLR-2114, which changed the
signature slightly from the earlier, unreleased form.
  
- Example: hsin(2, x, y, 0, 0, 1) - Calculate the haversine distance between the lat/lon 0,
0 on a sphere of radius 2 and the values in field x,y with a radius of 1.
+ Example: hsin(2, true, x, y, 0, 0) - Calculate the haversine distance between the lat/lon
0, 0 on a sphere of radius 2 and the values in field x,y, converting the values automatically
to radians.
  
  == geohash - Convert to geohash ==
  Given a latitude and longitude (in degrees, not radians), convert them to a Geohash.  See
http://en.wikipedia.org/wiki/Geohash.

Mime
View raw message