: What is confusing me now is that I have to implement my logic in

you're certianly in a fuzzy grey area here ... none of this stuff was 
designed for the kind of thing you're doing.

: But in processCommit, having access to the core I can get the IndexReader
: but I still don't know how to get the IndexWriter and SolrInputDocuments in

you don't get direct access ot the IndexWriter ... instead your 
UpdateProcessor uses the SolrCore to get an UpdateRequestProcessorChain to 
add (ie: replace) the SolrInputDocuments you made based on what you saw in 
the orriginal SolrInputDocuments.

for a second i was thinking that you'd have to worry about checking some 
threadlocal variable to keep yourself from going into an infinite loop, 
but then i remembered that you can configured named 
UpdateRequestProcessorChains ... so your default Chain can use your custom 
component, and you can create a simple chain (that bybasses your custom 
component) for your component to call processAdd()/processCommit() on.



-Hoss

Reply via email to