Class HttpSolrClientFactory

java.lang.Object
org.dspace.statistics.HttpSolrClientFactory
All Implemented Interfaces:
SolrClientFactory

public class HttpSolrClientFactory extends Object implements SolrClientFactory
Factory of HtmlSolrClient instances.
Author:
mwood
  • Constructor Details

    • HttpSolrClientFactory

      public HttpSolrClientFactory()
  • Method Details

    • getClient

      public org.apache.solr.client.solrj.SolrClient getClient(String coreUrl)
      Description copied from interface: SolrClientFactory
      Instantiate a SolrClient connected to a specified core.
      Specified by:
      getClient in interface SolrClientFactory
      Parameters:
      coreUrl - URL of the core to connect with.
      Returns:
      a connection to the given core.