You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/12/11 14:57:39 UTC

[Solr Wiki] Update of "FunctionQuery" by GrantIngersoll

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.
http://wiki.apache.org/solr/FunctionQuery?action=diff&rev1=46&rev2=47

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

  
  '''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.