I have an existing application that includes Lucene code. I want to add high availability. From what I have read SolrCloud looks like an effective approach. My problem is that there is a lot of Lucene code; out of 100+ java files in the application more than 20 of them are focused on Lucene code. Refactoring this much code seems very risky.
My thought was to migrate the index from Lucene 35 to Solr/Lucene 4.10 then after making sure everything still works I would add in the HA. I looked at solrj with the hope that it would look like Lucene but it did not look like it would simplify the transition. So the question is can I leave most of the existing Lucene code and just make small changes to get the benefit of HA from SolrCloud. Is there a better approach?