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 DavidSmiley:
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4?action=diff&rev1=18&rev2=19

Comment:
range query syntax option

  
  Notice that the query uses the standard default Lucene query parser and uses 
its fielded-query syntax in which a field is referenced followed by a colon.  
The spatial operation and shape are provided in the double-quotes.  Just use 
Intersects operation for now, as the others aren't well supported.  The 
contents of the parenthesis are a shape in the very same format used when 
indexing.
  
+ If you want to query by a rectangle shape, you have the option of using 
Solr's range query syntax:
+ 
+ {{{ fq=geo:[-90,-180 TO 90,180] }}}
+ 
+ This is limited to lat,lon style without spaces, Intersects operation only, 
and you can't specify any extra options as seen below.  The left side has the 
lower left corner, and the right side has the upper right corner.
+ 
  Keep in mind that the query shape will by default have the distErrPct 
precision specified by the field type definition, which defaults to 0.025 
(2.5%).  Interpretation of this figure was described earlier.  Here is an 
example polygon query setting it to 0:
  
  {{{   fq=geo:"Intersects(POLYGON((-10 30, -40 40, -10 -20, 40 20, 0 0, -10 
30))) distErrPct=0" }}}

Reply via email to