Class CollectionInitializer

java.lang.Object
edu.byu.hbll.solr.CollectionInitializer

@Deprecated public class CollectionInitializer extends Object
Deprecated.
since 1.2.0; use SolrCollectionInitializer instead.
Utility class for initializing a Solr collection.
  • Constructor Details

    • CollectionInitializer

      public CollectionInitializer()
      Deprecated.
  • Method Details

    • initSolr

      @Deprecated public static void initSolr(String zkHost, String collectionName, String configSetName, Path configSetPath) throws IOException, org.apache.solr.client.solrj.SolrServerException
      Deprecated.
      since 1.2.0; use SolrCollectionInitializer instead.
      Creates a SolrCloud collection if it doesn't already exist with the given config set.
      Parameters:
      zkHost - host and optional port of one of a zookeeper instance (localhost:2181)
      collectionName - name of the collection to be created
      configSetName - name of the config set to use
      configSetPath - location of the config set (folder containing solr configs such as solrconfig.xml)
      Throws:
      IOException - if something goes wrong with the upload
      org.apache.solr.client.solrj.SolrServerException - if something goes wrong with the upload
    • initSolr

      @Deprecated public static void initSolr(String zkHost, String collectionName) throws IOException, org.apache.solr.client.solrj.SolrServerException
      Deprecated.
      since 1.2.0; use SolrCollectionInitializer instead.
      Method to initialize a Solr collection using the provided default configs.
      Parameters:
      zkHost - host and optional port of one of a zookeeper instance (localhost:2181)
      collectionName - name of the collection to be created
      Throws:
      IOException - if something goes wrong with the upload
      org.apache.solr.client.solrj.SolrServerException - if something goes wrong with the upload