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 TonyBajan:
http://wiki.apache.org/solr/SpatialSearch?action=diff&rev1=85&rev2=86

Comment:
Add required schema.xml configuration

  <field name="store">40.7143,-74.006</field>     <!-- NYC store -->
  <field name="store">37.7752,-122.4232</field>   <!-- San Francisco store -->
  }}}
+ 
+ == Schema Configuration ==
+ 
+ This requires a location field type in schema.xml
+ 
+ {{{
+   <fieldType name="location" class="solr.LatLonType" 
subFieldSuffix="_coordinate"/>
+ }}}
+ 
+ and also a dynamic field type matching the suffix to store the data points:
+ 
+ {{{
+   <dynamicField name="*_coordinate"  type="tdouble" indexed="true"  
stored="false"/>
+ }}}
+ 
  == geofilt - The distance filter ==
  Now let's assume that we are at '''45.15,-93.85''' (which happens to be 3.437 
km from the Buffalo store).  We can use a '''geofilt''' filter to find all 
products (documents in our index) with the field '''store''' within '''5km''' 
of our position:
  

Reply via email to