Package edu.byu.hbll.solr
Class CollectionInitializer
java.lang.Object
edu.byu.hbll.solr.CollectionInitializer
Deprecated.
Utility class for initializing a Solr collection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.since 1.2.0; useSolrCollectionInitializerinstead.static voidDeprecated.since 1.2.0; useSolrCollectionInitializerinstead.
-
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; useSolrCollectionInitializerinstead.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 createdconfigSetName- name of the config set to useconfigSetPath- location of the config set (folder containing solr configs such as solrconfig.xml)- Throws:
IOException- if something goes wrong with the uploadorg.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; useSolrCollectionInitializerinstead.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 uploadorg.apache.solr.client.solrj.SolrServerException- if something goes wrong with the upload
-
SolrCollectionInitializerinstead.