: > Hm... I seem to be having trouble getting either the Factory or the
: > Processor to do an init() for me.

The UpdateRequestProcessor API doesn't have an init() method, but the 
UpdateRequestProcessorFactory API definitely does, and i can see it 
getting called.  are you sure you are overriding the method correctly? 
(the code you sent was after you already got rid of your init() method so 
i'm not sure) ...

  @Override
  public void init( NamedList args ) {
    // do stuff here.
  }

...the "@Override" part isn't strictly neccessary, but it will make the 
compiler complain if you've got a typo in your method name or something 
and it's not actually overriding the super class.

As you've already figured out however, UpdateRequestProcessorFactory can 
aparently also implement SolrCoreAware and do stuff in it's inform method.

: Here's my code, and a solution I think works -- is there a better way to do
: this:

I'm not really an expert on the UpdateRequestProcessor's but what you've 
got seems like it should be fine to me.




-Hoss

Reply via email to