One thing I noticed is that while the HttpSolrServer "add(SolrInputDocument doc)" method is atomic (Either a bean is added or an exception is thrown), the HttpSolrServer "add(Collection<SolrInputDocument> docs)" method is not atomic.
Question: Is there a way to commit multiple documents/beans in a transaction/together in a way that it succeeds completely or fails completely? Quick outline of what I did to highlight a call to HttpSolrServer "add(Collection<SolrInputDocument> docs)" method is not atomic. 1. Create 5 documents, comprising of 4 valid documents (Documents 1,2,4,5) and 1 document with an issue, document 3. 2. Call to HttpSolrServer "add(Collection<SolrInputDocument> docs)" which threw a SolrException. 3. Call to HttpSolrServer "commit()". 4. Discovered that 2 out of 5 (documents 1 and 2) documents where still commited. -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-Solr-Two-Phase-Commit-tp4060399p4060590.html Sent from the Solr - User mailing list archive at Nabble.com.