Re: abort data import on errors

2011-01-04 Thread Lance Norskog
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  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  wrote:
>
>
> From: Markus Jelsma 
> 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


Re: abort data import on errors

2011-01-04 Thread Tri Nguyen
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  wrote:


From: Markus Jelsma 
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


Re: abort data import on errors

2011-01-04 Thread Markus Jelsma
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


abort data import on errors

2011-01-04 Thread Tri Nguyen
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