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=4&rev2=5 -------------------------------------------------- Most of these items are being tracked on https://issues.apache.org/jira/browse/SOLR-773 and it's related issues. The goal is to bring spatial search into Solr in such a way as to leverage all of Solr's existing capabilities for distributed search, etc. + = An Example = + + On https://issues.apache.org/jira/browse/SOLR-1131, the example schema was changed to provide information about what store the products were located in. + + The schema changes look like: + {{{ + <fieldType name="location" class="solr.PointType" dimension="2" subFieldTypes="double"/> + + <field name="store" type="location" indexed="true" stored="true"/> + }}} + + In the example docs, for example: hd.xml, the document now has: + {{{ + + <field name="store">45.17614,-93.87341</field> + }}} + in addition to all the other fields. + + Then, to query, the system can use the distance Functions in Solr, as in: + {{{ + http://localhost:8983/solr/select/?q=_val_:"recip(dist(2, store, point(34.0232,-81.0664)),1,1,0)"&fl=*,score + }}} + = Data Representation = One of the keys to data representation is the ability to represent points, etc. in multiple different ways. Some times, a user may want a [http://en.wikipedia.org/wiki/Geohash|Geohash] and other times they may want Cartesian tiers or just simple lat/lon.
