logger.info("[{}]: sending: {}...", core, xmlFile);
// Ensure it's in UTF-8 encoding
Reader reader = new InputStreamReader(
new FileInputStream(xmlFile), "UTF-8");
String body = IOUtils.toString(reader);
SolrRequest request = new DirectXmlRequest("/update", body);
/** Post the document to the Index */
request.process(server);
IOUtils.closeQuietly(reader);
}
// Commit the changes
server.commit();
} catch (Exception ex) {