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 2012/10/16 08:25:55 UTC

[Solr Wiki] Update of "SolrAdaptersForLuceneSpatial4" by Bill Bell

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"/>
+