I think I found the answer by looking through the code...specifically SpellCheckComponent.
So my component would have to implement SolrCoreAware and in the inform() method, register a custom SolrEventListener which will execute the regeneration code in the postCommit and newSearcher methods. Would still appreciate knowing if there is a simpler way, or if I am wildly off the mark. Thanks Sujit On Thu, 2011-04-07 at 16:39 -0700, Sujit Pal wrote: > Hi, > > I am developing a SearchComponent that needs to build some initial > DocSets and then intersect with the result DocSet during each query (in > process()). > > When the searcher is reopened, I need to regenerate the initial DocSets. > > I am on Solr 1.4.1. > > My question is, which method in SearchComponent should I override to > ensure that this regeneration happens whenever the searcher is reopened > (for example in response to an update followed by a commit)? > > If no such hook method exists, how would this need to be done? > > Thanks > Sujit > >