Class ConfigSetService

    • Constructor Detail

      • ConfigSetService

        public ConfigSetService​(SolrResourceLoader loader)
        Create a new ConfigSetService
        Parameters:
        loader - the CoreContainer's resource loader
    • Method Detail

      • getConfig

        public final ConfigSet getConfig​(CoreDescriptor dcore)
        Load the ConfigSet for a core
        Parameters:
        dcore - the core's CoreDescriptor
        Returns:
        a ConfigSet
      • createSolrConfig

        protected SolrConfig createSolrConfig​(CoreDescriptor cd,
                                              SolrResourceLoader loader)
        Create a SolrConfig object for a core
        Parameters:
        cd - the core's CoreDescriptor
        loader - the core's resource loader
        Returns:
        a SolrConfig object
      • createIndexSchema

        protected IndexSchema createIndexSchema​(CoreDescriptor cd,
                                                SolrConfig solrConfig)
        Create an IndexSchema object for a core
        Parameters:
        cd - the core's CoreDescriptor
        solrConfig - the core's SolrConfig
        Returns:
        an IndexSchema
      • createConfigSetProperties

        protected NamedList createConfigSetProperties​(CoreDescriptor cd,
                                                      SolrResourceLoader loader)
        Return the ConfigSet properties
        Parameters:
        cd - the core's CoreDescriptor
        loader - the core's resource loader
        Returns:
        the ConfigSet properties
      • createCoreResourceLoader

        protected abstract SolrResourceLoader createCoreResourceLoader​(CoreDescriptor cd)
        Create a SolrResourceLoader for a core
        Parameters:
        cd - the core's CoreDescriptor
        Returns:
        a SolrResourceLoader
      • configName

        public abstract String configName​(CoreDescriptor cd)
        Return a name for the ConfigSet for a core
        Parameters:
        cd - the core's CoreDescriptor
        Returns:
        a name for the core's ConfigSet