I may have found a good solution. I implemented my own SolrEventListener: public class DynamicIndexerEventListener implementsorg.apache.solr.core.SolrEventListener{
... and then called it with a "firstSearcher" element in solrconfig.xml: <listener event="firstSearcher" class="com.bestbuy.search.foundation.solr.DynamicIndexerEventListener" /> Then in the newSearcher() method I startup up the thread for my polling UpdateRequestHandler. This seems to work, but if anyone has a better (or more tested) approach please let us know. -Jay On Mon, Jul 9, 2012 at 2:33 PM, Jay Hill <jayallenh...@gmail.com> wrote: > I'm writing a custom update request handler that will poll a "hot" > directory for Solr xml files and index anything it finds there. The custom > class implements Runnable, and when the run method is called the loop > starts to do the polling. How can I tell Solr to load this class on startup > to fire off the run() method? > > Thanks, > -Jay >