anchor.diff:  
   Here's an example:
   
  -`&q=*:*&fq=store:[45,-94 TO 46,-93]`
  +[source,text]
  +&q=*:*&fq=store:[45,-94 TO 46,-93]
   
   LatLonType (deprecated) does *not* support rectangles that cross the dateline. For RPT and BBoxField, if you are non-geospatial coordinates (`geo="false"`) then you must quote the points due to the space, e.g., `"x y"`.
   
  
positive.code: 
  Here we will query for results in Jacksonville, Florida, or within 50 kilometers of 45.15,-93.85 (near Buffalo, Minnesota):
  
  `&q=*:*&fq=(state:"FL" AND city:"Jacksonville") OR {!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=geodist()+asc`
  
  === Facet by Distance
  
  To facet by distance, you can use the Frange query parser:
  
  `&q=*:*&sfield=store&pt=45.15,-93.85&facet.query={!frange l=0 u=5}geodist()&facet.query={!frange l=5.001 u=3000}geodist()`
  
  There are other ways to do it too, like using a \{!geofilt} in each facet.query.
  
  === Boost Nearest Results
  
  Using the <<the-dismax-query-parser.adoc#the-dismax-query-parser,DisMax>> or <<the-extended-dismax-query-parser.adoc#the-extended-dismax-query-parser,Extended DisMax>>, you can combine spatial search with the boost function to boost the nearest results:
  
  `&q.alt=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&bf=recip(geodist(),2,200,20)&sort=score desc`
  
  == RPT
  
  
negative.code: 
  `geodist` is a distance function that takes three optional parameters: `(sfield,latitude,longitude)`. You can use the `geodist` function to sort results by distance or score return results.
  
  For example, to sort your results by ascending distance, use a request like:
  
  [source,text]
  &q=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=geodist() asc
  
  To return the distance as the document score, use a request like:
  
  [source,text]
  &q={!func}geodist()&sfield=store&pt=45.15,-93.85&sort=score+asc&fl=*,score
  
  == More Spatial Search Examples
  
  