Hm... I seem to be having trouble getting either the Factory or the
Processor to do an init() for me.
The end result I'd like to see is a function that gets called only
once, either on solr init or the first time the handler is called. I
can't seem to do that.
I have these two classes:
public class KeepIndexedDateFactory extends
UpdateRequestProcessorFactory
with a getInstance method
and then
class KeepIndexedDateProcessor extends UpdateRequestProcessor
with a processAdd method
The init() on both classes is never called, ever.
The getInstance() method of the first class is called every time I add
a doc, so I can't init stuff there.
inform() of the first class is called if I add a implements
SolrCoreAware -- but the class I need to instantiate once is only
needed in the second class.
I hope this makes sense -- java is not my first language.