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 "SpatialSearch" by GrantIngersoll
Date Tue, 21 Sep 2010 13:23:41 GMT
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=28&rev2=29

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

  Indexing is handled by the various !FieldType instances in the schema.  At the most basic,
the user can represent their own spatial data using ints, floats or doubles.  Beyond that,
the !PointType, !GeoHashField and !LatLonType can be used to index spatial information automatically.
  
  When indexing, the format is something like:
+ 
  {{{
  <field name="store_lat_lon">12.34,-123.45</field>
  }}}
- 
  (It can vary based on the number of values.  When using a !LatLonType or a !GeoHashField,
it is always latitude, then longitude.
  
  = Filtering =
@@ -102, +102 @@

  ||<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
||
- ||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
||
+ ||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 6371.009.  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. ||
  
  
@@ -124, +124 @@

  https://issues.apache.org/jira/browse/SOLR-1578 See https://issues.apache.org/jira/browse/SOLR-1568
  
  = Other Caveats =
- 
  Unless otherwise specified, all units are kilometers.
  
  = Known Issues =

Mime
View raw message