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 2010/07/09 23:12:24 UTC

[Solr Wiki] Update of "SpatialSearch" by GrantIngersoll

Dear Wiki user,

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

The "SpatialSearch" page has been changed by GrantIngersoll.
http://wiki.apache.org/solr/SpatialSearch?action=diff&rev1=26&rev2=27

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

  ...
  <field name="store" type="location" indexed="true" stored="true"/>
  }}}
- 
- 
  === LatLonType ===
  The !LatLonType combines a latitude/longitude point.  All input is interpreted as latitude then longitude.  The LatLonType is similar to !PointType, but it does distance calculations based on Great Circle (haversine) and is only two dimensional (lat/lon).
  
@@ -97, +95 @@

  ||<tablewidth="725px" tableheight="184px">Parameter ||Description ||Example ||
  ||pt ||The Point to use as the center of the filter.  Specified as a comma separated list of doubles.  If using the !LatLonType, then it is lat,lon. ||&pt=33.4,29.0 &pt=27.3,83.9,10.0,5.5 ||
  ||d ||The distance from the point to the outer edge of whatever is being used to filter on (bounding box, pure distance, something else).  Must be greater than or equal to 0 ||&d=10.0 ||
- ||units ||The units of distance.  "mi" or "km".  Default is miles.  All distances are converted to miles internally. ||&units=km &units=mi ||
- ||sphere_radius ||The radius of the sphere to be used when calculating distances on a sphere (i.e. haversine).  Default is the Earth's mean radius in miles (see org.apache.solr.search.function.distance.Constants.EARTH_MEAN_RADIUS_MI) which is set to 3,958.761458084784856.  Most applications will not need to set this. ||&sphere_radius=10.3 ||
+ ||sphere_radius ||The radius of the sphere to be used when calculating distances on a sphere (i.e. haversine).  Default is the Earth's mean radius in kilometers (see org.apache.solr.search.function.distance.Constants.EARTH_MEAN_RADIUS_KM) which is set to 3,958.761458084784856.  Most applications will not need to set this. ||&sphere_radius=10.3 ||
  ||meas ||NOTE: This value is experimental and subject to removal.  Most applications will not need to change the measure.  The !FieldTypes usually make the proper choice given the data stored. The distance measure to use when calculating distance.  The default is dependent on the FieldType.  Supported values are: 1. hsin - The haversine 2. 0, 1, 2, ... INF for the appropriate p-norm (2 is the Euclidean Distance) ||&meas=hsin. ||