From my Enterprise Lucene/Solr Book: solr-mapindex project