@Override public IndexMetadata createSolrIndex(String coreName, String indexPath, Properties properties) throws IOException { return defaultServer.createSolrIndex(coreName, indexPath, properties); }
@Override public IndexMetadata createSolrIndex(String indexName, ArchiveInputStream ais) throws IOException, SAXException { return defaultServer.createSolrIndex(indexName, ais); }
@Override public IndexMetadata createSolrIndex(String indexName, ArchiveInputStream ais) throws IOException, SAXException { return defaultServer.createSolrIndex(indexName, ais); }
@Override public IndexMetadata createSolrIndex(String coreName, String indexPath, Properties properties) throws IOException { return defaultServer.createSolrIndex(coreName, indexPath, properties); }
public void createDefaultSolrServer() throws StoreException { if (!cache.containsKey(CONTENTHUB_DEFAULT_INDEX_NAME)) { if (!managedSolrServer.isManagedIndex(CONTENTHUB_DEFAULT_INDEX_NAME)) { try { managedSolrServer.createSolrIndex(CONTENTHUB_DEFAULT_INDEX_NAME, CONTENTHUB_DEFAULT_INDEX_NAME, null); } catch (IOException e) { String msg = "Error while creating default solr index"; log.error(msg, e); throw new StoreException(msg, e); } } } }
public void createSolrCore(String coreName, ArchiveInputStream coreArchive) throws StoreException { if (managedSolrServer.isManagedIndex(coreName)) { String msg = String.format("Solr index already exists with name: %s", coreName); log.error(msg); throw new StoreException(msg); } try { managedSolrServer.createSolrIndex(coreName, coreArchive); } catch (IOException e) { log.error("", e); throw new StoreException(e); } catch (SAXException e) { String msg = "ManagedSolrServer cannot parse the related XML files."; log.error(msg, e); throw new StoreException(msg, e); } }
indexMetadata = managedSolrServer.createSolrIndex(indexName, solrCoreConfig, null); if(indexMetadata != null)
indexMetadata = managedSolrServer.createSolrIndex(indexName, solrCoreConfig, null); if(indexMetadata != null)
new Object[]{solrIndexRef.getIndex(),configName,managedServer.getServerName()}); try { metadata = managedServer.createSolrIndex(solrIndexRef.getIndex(), configName, null); } catch (IOException e) { throw new IllegalStateException("Unable to create Managed SolrIndex "
new Object[]{solrIndexRef.getIndex(),configName,managedServer.getServerName()}); try { metadata = managedServer.createSolrIndex(solrIndexRef.getIndex(), configName, null); } catch (IOException e) { throw new IllegalStateException("Unable to create Managed SolrIndex "