Class MCRSolrConfigReloader

java.lang.Object
org.mycore.solr.schema.MCRSolrConfigReloader

public class MCRSolrConfigReloader extends Object
This class provides methods to reload a SOLR configuration using the SOLR configuration API see https://lucene.apache.org/solr/guide/8_6/config-api.html
Author:
Robert Stephan, Jens Kupferschmidt
  • Constructor Details

    • MCRSolrConfigReloader

      public MCRSolrConfigReloader()
  • Method Details

    • reset

      public static void reset(String configType, String coreID)
      Removed items from SOLR configuration overlay. This removal works over all in the property MCR.Solr.ObserverConfigTypes defined SOLR configuration parts. For each entry the method will process a SOLR delete command via API.
      Parameters:
      configType - the name of the configuration directory containing the SOLR core configuration
      coreID - the ID of the core, which the configuration should be applied to
    • processConfigFiles

      public static void processConfigFiles(String configType, String coreID)
      This method modified the SOLR configuration definition based on all solr/{coreType}/solr-config.json in the MyCoRe-Maven modules resource path.
      Parameters:
      configType - the name of the configuration directory containing the SOLR core configuration
      coreID - the ID of the core, which the configuration should be applied to