Class MCRSolrClientFactory

java.lang.Object
org.mycore.solr.MCRSolrClientFactory

public final class MCRSolrClientFactory extends Object
Author:
shermann, Thomas Scheffler (yagee), Matthias Eichner, Jens Kupferschmidt
  • Method Details

    • addCore

      public static MCRSolrCore addCore(String server, String coreName, String coreID)
    • add

      public static void add(String coreID, MCRSolrCore core)
      Add a SOLR core instance to the list
      Parameters:
      core - the MCRSolrCore instance
    • remove

      public static Optional<MCRSolrCore> remove(String coreID)
      Remove a SOLR core instance from the list
      Parameters:
      coreID - the name of the MCRSolrCore instance
    • get

      public static Optional<MCRSolrCore> get(String coreID)
      Parameters:
      coreID - the id of the core
      Returns:
      a core with a specific id
    • getMainSolrCore

      public static MCRSolrCore getMainSolrCore()
    • getMainSolrClient

      public static org.apache.solr.client.solrj.SolrClient getMainSolrClient()
      Returns the solr client of the default core.
    • getMainConcurrentSolrClient

      public static org.apache.solr.client.solrj.SolrClient getMainConcurrentSolrClient()
      Returns the concurrent solr client of the default core.
    • getCoreMap

      public static Map<String,MCRSolrCore> getCoreMap()
      Returns:
      the read only core map wich contains the coreId and the core