The DataImportHandler does this already. In fact you can set what
happens on an indexing error.

On Tue, Jan 4, 2011 at 4:59 PM, Tri Nguyen <tringuye...@yahoo.com> wrote:
> I didn't want to issue the rollback command but have solr automatically 
> detect exceptions and rollback should there be exceptions.
>
> Probably there's an attribute I can configure to specify this for solr to 
> understand.
>
> Tri
>
> --- On Tue, 1/4/11, Markus Jelsma <markus.jel...@openindex.io> wrote:
>
>
> From: Markus Jelsma <markus.jel...@openindex.io>
> Subject: Re: abort data import on errors
> To: solr-user@lucene.apache.org
> Date: Tuesday, January 4, 2011, 4:57 PM
>
>
> http://wiki.apache.org/solr/UpdateXmlMessages#A.22rollback.22
>
>> Hi,
>>
>> Is there a way to specify to abort (rollback) the data import should there
>> be an error/exception?
>> If everything runs smoothly, commit the data import.
>>
>> Thanks,
>>
>> Tri
>



-- 
Lance Norskog
goks...@gmail.com

Reply via email to