title: How to boost Solr relevancy score by inverse of geodist()
body: <p>So I've implemented and successfully used Solr 4. I've got to say that Solr 4 is awesome! Anyway I successfully sorted by distance and used a geofilter to limit the results to a certain area.  What I would like to do now is boost the relevancy score by the inverse of the distance.  This page talks about it but doesn't say how to do it (http://wiki.apache.org/solr/SpatialSearch)</p>
  
  <p>I've tried the following but it gives me an error:</p>
  
  <p><code>http://localhost:8983/solr/select/?q={!boost b=recip(geodist(), 1, 1000, 1000)}...</code></p>
  
  <p>The error I get is:</p>
  
  <p><code>org.apache.lucene.queryParser.ParseException: Expected identifier at pos 27 str='{!boost b=recip(geodist(), 1, 10 in ...</code></p>
  
  <p>Any help would be appreciated. Thanks!</p>