What I meant is:
If I do SolrServer#rollback after 11 documents were added, will then only 1 or 
all 11 docments that have been added "in the SolrServer-tranascation/context"?

-----Ursprüngliche Nachricht-----
Von: Shawn Heisey [mailto:apa...@elyograg.org] 
Gesendet: Mittwoch, 21. Januar 2015 15:24
An: solr-user@lucene.apache.org
Betreff: Re: AW: AW: transactions@Solr(J)

On 1/20/2015 11:42 PM, Clemens Wyss DEV wrote:
> But then what happens if:
> Autocommit is set to 10 docs
> and
> I add 11 docs and then decide (due to an exception?) to rollback.
> 
> Will only one (i.e. the last added) document be rollen back?

The way I understand the low-level architecture, yes -- assuming that all 11 
documents actually got indexed.  If the exception happened because of document 
5 was badly formed, only documents 1-4 will have been indexed, and in that 
case, all four of them would get rolled back.

Thanks,
Shawn

Reply via email to