*/
@Override
public String put(ContentItem ci, String ldProgramName) throws StoreException {
SolrInputDocument doc = new SolrInputDocument();
addDefaultFields(ci, doc);
SolrServer solrServer;
if (ldProgramName == null || ldProgramName.isEmpty()
|| ldProgramName.equals(SolrCoreManager.CONTENTHUB_DEFAULT_INDEX_NAME)) {
addSolrSpecificFields(ci, doc);
solrServer = SolrCoreManager.getInstance(bundleContext, managedSolrServer).getServer();
} else {
addSolrSpecificFields(ci, doc, ldProgramName);
solrServer = SolrCoreManager.getInstance(bundleContext, managedSolrServer).getServer(
ldProgramName);
}
updateEnhancementGraph(ci);
try {
solrServer.add(doc);
solrServer.commit();
log.debug("Documents are committed to Solr Server successfully.");
} catch (SolrServerException e) {
log.error("Solr Server Exception", e);
throw new StoreException(e.getMessage(), e);
} catch (IOException e) {