Hi everyone, I'm trying to figure out when and how I should handle failures that may occur during indexing. In the sample code below, look at my comment and let me know what state my index is in when things fail:
SolrClient solrClient = new HttpSolrClient.Builder(url).build(); solrClient.add(solrDocs); // #1: What to do if add() fails? And how do I know if all or some of my docs in 'solrDocs' made it to the index or not ('solrDocs' is a list of 1 or more doc), should I retry add() again? Retry with a smaller chunk? Etc. if (doCommit == true) { solrClient.commit(); // #2: What to do if commit() fails? Re-issue commit() again? } Thanks Steven