Re: Loading custom update request handler on startup

2012-07-10 Thread Erik Hatcher
Couldn't you do this in the init() method? You might have to kick off your background thread, but lazy initialize stuff when it fires to initialize other things that require Solr be fully ready. Note that DataImportHandler can index Solr XML files with very little configuration, and cronning

Re: Loading custom update request handler on startup

2012-07-10 Thread Michel Dion
Another approach would be to use an external application executed by a cron or some scheduler that would post the file to solr using the class. org.apache.solr.util.SimplePostTool SimplePostTool postTool = new SimplePostTool(new URL(SOLR_URL)); for (File file : outputDir.listFiles(/* smoe filte

Re: Loading custom update request handler on startup

2012-07-09 Thread Jay Hill
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: Then in the newSearcher() method I startup up the t