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 "SolrAdaptersForLuceneSpatial4" by Bill Bell
Date Tue, 16 Oct 2012 06:25:55 GMT
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"/>
+ 

Mime
View raw message