Spatial Search with Grails and Solr Plugin
Grails has a good Solr plugin (http://www.grails.org/plugin/solr) that works well and also provides spatial search that works out of the box. However, the documentation to use this feature is a bit skimpy so here are the basic steps to enable spatial search with Solr for your Grails app.
Install the solr plugin for Grails using 'grails install-plugin solr' and enable Solr indexing for your domain class by:
Next, we need to add a Solr index field annotation to the domain members.
Once we have those in place, we can use SolrService to query: