Hi Mat, This is an area of active work in Solr right now (see SOLR-773 in JIRA for the top level tracking issue). Obviously you can do as you wish, but it would be really great if you chipped in on making the capabilities in Solr better (we've already added in the Lucene spatial jar, a bunch of distance functions, sort by functions and a few spatial field types) instead of doing something separate.
In other words, spatial support is going to be baked into Solr 1.5, riding on the tail of a a whole slew of features that make Solr even more capable. See http://wiki.apache.org/solr/SpatialSearch for more details. Cheers, Grant On Dec 30, 2009, at 6:51 PM, Mat Brown wrote: > Hi all, > > I've been working on a small Solr plugin to expose the basic > functionality of lucene-spatial as unobtrusively as possible. I've got > a basic implementation up and passing tests, and I was hoping to get > some feedback on it. Though I've coded against Lucene for a production > app in the past, this is my first time writing code for Solr's plugin > API, so I could easily be entirely on the wrong track. > > Honest (even brutal!) feedback would be very much appreciated: > > http://github.com/outoftime/solr-spatial > > Thanks much, > Mat > > P.S. I definitely don't want to step on anyone's toes with the name - > if "solr-spatial" is already in use, or reserved for a future official > contrib for Solr, let me know and I'll come up with something else!