Reconnect and retry on write failure
Base commits on Solr configuration

Use solrconfig.xml autoSoftCommit and autoCommit configuration options
to determine commit strategy instead of forcing commits for every
document