title: How to do Polygon spatial search in Solr?
body: <p>We are using Solr 3.3 with Solr.NET and we have put a dynamic "location_p" location type field on our documents and now we need the ability to do spatial searches. </p>
  
  <p>I have got the radius searches (distance from a given point) working like this;</p>
  
  <pre><code>{!geofilt sfield=location_p pt=33.882518712472255,-84.05531775646972 d=1.7}
  </code></pre>
  
  <p>Now we need the ability to do a Polygon squery to get all documents with the "location_p" field 'inside' a given set of Points (something along the lines of the Polygon search capabilities of <a href="http://www.elasticsearch.org/guide/reference/query-dsl/geo-polygon-filter.html" rel="nofollow" title="ElasticSearch">ElasticSearch</a>).</p>
  
  <p>This is really different than the BBox query filter as the points of the Polygon are not symmetrical, more random based on user 'click' points.</p>
  
  <p>Any ideas or suggestions would be appreciated.</p>