Package org.mycore.solr.schema
Class MCRSolrConfigReloader
java.lang.Object
org.mycore.solr.schema.MCRSolrConfigReloader
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static void
Removed items from SOLR configuration overlay.
-
Constructor Details
-
MCRSolrConfigReloader
public MCRSolrConfigReloader()
-
-
Method Details
-
reset
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 configurationcoreID
- the ID of the core, which the configuration should be applied to
-
processConfigFiles
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 configurationcoreID
- the ID of the core, which the configuration should be applied to
-