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