Re-factored the search functionality into its own factory and moved the Solr and Lucene dependencies into their own projects