I can throw DataImportHandlerException (a runtime exception) from my 
entityprocessor which will force a rollback.

Tri




________________________________
From: Tri Nguyen <tringuye...@yahoo.com>
To: solr-user@lucene.apache.org
Sent: Wed, February 9, 2011 3:50:05 PM
Subject: communication between entity processor and solr DataImporter

Hi,

I'd like to communicate errors between my entity processor and the DataImporter 
in case of error.

Should there be an error in my entity processor, I'd like the index build to 
rollback. How can I do this?

I want to throw an exception of some sort.  Only thing I can think of is to 
force a runtime exception be thrown in nextRow() of the entityprocessor since 
runtime exceptions are not checked and does not have to be declared in the 
nextRow() method signature.

How can I request the nextRow() method signature be updated to throw 
Exception?  

Would it even make sense?

Tri

Reply via email to