lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "FunctionQuery" by GrantIngersoll
Date Fri, 11 Dec 2009 13:57:39 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.
The comment on this change is: SOLR-1131 is going to parse the radius first, as this facilitates
using PointType as well as regular value sources.


  '''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)
+ Signature: hsin(radius, x1,y1,x2,y2), ghhsin(radius, hash1, hash2) //pre SOLR-1131, the
radius was the last value.
  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.

View raw message