code from the Nancy/Solr Minimalist searching session