Class SolrCloudClientFactory

java.lang.Object
org.codice.solr.factory.impl.SolrCloudClientFactory
All Implemented Interfaces:
org.codice.solr.factory.SolrClientFactory

public class SolrCloudClientFactory extends Object implements org.codice.solr.factory.SolrClientFactory
Factory class used to create new CloudSolrClient clients.
Uses the following system properties when creating an instance:
  • solr.cloud.zookeeper: Comma-separated list of Zookeeper hosts
  • org.codice.ddf.system.threadPoolSize: Solr query thread pool size
  • Constructor Details

    • SolrCloudClientFactory

      public SolrCloudClientFactory()
  • Method Details

    • newClient

      public org.apache.solr.client.solrj.SolrClient newClient(String collection)
      Specified by:
      newClient in interface org.codice.solr.factory.SolrClientFactory
    • createCollection

      public boolean createCollection(String collection, org.apache.solr.client.solrj.impl.CloudSolrClient client) throws SolrFactoryException
      Throws:
      SolrFactoryException
    • checkConfig

      protected void checkConfig(String zookeeperHosts)