Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrAdaptersForLuceneSpatial4" page has been changed by Bill Bell: http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4?action=diff&rev1=11&rev2=12 == Sorting and Relevancy == - TODO + Here is an example of a Circle it degree radius of .1, sorting and filtering by this. + {{{ http://localhost:8983/solr/select?q=*:*&sort=query($sortsq)+asc&wt=xml&fl=distdeg:query($sortsq),store_geohash&fq={!%20v=$geoq}&sortsq={!%20score=distance%20v=$geoq}&geoq=store_geohash:"Intersects(Circle(37.489651,-77.665085%20%20d=.1))" }}} + + The setup in schema.xml: + + <fieldType name="geohash" class="solr.SpatialRecursivePrefixTreeFieldType" units="degrees" /> + + <field name="store_geohash" type="geohash" indexed="true" stored="true"/> +