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 "SpatialSearch" by GrantIngersoll
Date Sat, 12 Dec 2009 23:03:59 GMT
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=5&rev2=6

--------------------------------------------------

  
  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.
  
+ == Points ==
+ 
+ === Numerics ===
+ 
+ The Trie* fields are perfect for representing lat/lon in two distinct fields.  Additionally,
as of https://issues.apache.org/jira/browse/SOLR-1131, there is now a !PointType that supports
transparently representing a point in n-dimensional space
+ 
+ === Geohash ===
+ 
+ A geohash is a way of encoding lat/lon into a single field as a String.  As of https://issues.apache.org/jira/browse/SOLR-1586,
it will be possible to create a geohash via FieldType, simply by passing in a Point (lat,lon).
 Solr will do the work of converting the point to a geohash.
+ 
+ See http://www.geohash.org and http://en.wikipedia.org/wiki/Geohash
+ 
+ === Tiers ===
+ 
+ <!> TODO <!>  Fill in more on Tiers
+ 
+ See https://issues.apache.org/jira/browse/SOLR-1586 for the CartesianTierFieldType, which
can index points into tiers.
+ 
+ = Indexing =
+ 
+ 
+ 
+ 
  = Filtering =
+ 
+ There are several different ways to filter in spatial search:
+ 
+  1. By Range Query, as in {{{fq=lat:[-23.0 TO -79.5] AND lon:[56.3 TO 60.3]}}} -- Already
implemented
+  1. By Cartesian Tier - See https://issues.apache.org/jira/browse/SOLR-1568 - <!>
TODO <!> - fill in details
+  1. Using the "frange" QParser, as in {{{fq={!frange l=0 u=400}hsin(0.57, -1.3, lat_rad,
lon_rad, 3963.205)}}}
  
  = Sorting =
  
+ https://issues.apache.org/jira/browse/SOLR-1297 added the ability to sort by function, so
sorting by distance is now simply a matter of sorting using the appropriate distance function,
just like boosting.
+ 
  = Scoring =
+ 
+ Scoring by distance works just like any other FunctionQuery.  See the distance methods on
the FunctionQuery page for examples and method signatures.
+ 
  
  = Query Parsing =
  
+ <!> TODO <!>
+ 
+ https://issues.apache.org/jira/browse/SOLR-1578
+ See https://issues.apache.org/jira/browse/SOLR-1568
+ 

Mime
View raw message