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=45&rev2=46 -------------------------------------------------- == hsin, ghhsin - Haversine Formula == [[Solr1.5]] See: https://issues.apache.org/jira/browse/SOLR-1302 - The Haversine distance calculates the distance between two points on a sphere when traveling along the sphere. In other words, it's the Great Circle distance. See http://en.wikipedia.org/wiki/Great-circle_distance. In the case of GeohashHaversine, the sources must be a geohash value. + The Haversine distance calculates the distance between two points on a sphere when traveling along the sphere. In other words, it's the Great Circle distance. See http://en.wikipedia.org/wiki/Great-circle_distance. In the case of !GeohashHaversine, the sources must be a geohash value. - '''Values must be in Radians'''. Please note Haversine distance has known problems with antipodal values. See the Wiki page. + '''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(x1,y1,x2,y2, radius), ghhsin(hash1, hash2, radius) - Example: hsin(x, y, 0, 0, 1) - Calculate the haversin distance between the lat/lon 0, 0 and the values in field x,y with a radius of 1. + Example: hsin(x, y, 0, 0, 1) - Calculate the haversine distance between the lat/lon 0, 0 and the values in field x,y with a radius of 1. == 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.
