Class ConfigSetService

    • Constructor Detail

      • ConfigSetService

        public ConfigSetService​(SolrResourceLoader loader,
                                boolean shareSchema)
        Create a new ConfigSetService
        Parameters:
        loader - the CoreContainer's resource loader
        shareSchema - should we share the IndexSchema among cores of same config?
    • Method Detail

      • loadConfigSet

        public final ConfigSet loadConfigSet​(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,
                                              boolean isTrusted)
        Create a SolrConfig object for a core
        Parameters:
        cd - the core's CoreDescriptor
        loader - the core's resource loader
        isTrusted - is the configset trusted?
        Returns:
        a SolrConfig object
      • createIndexSchema

        protected IndexSchema createIndexSchema​(CoreDescriptor cd,
                                                SolrConfig solrConfig)
        Create an IndexSchema object for a core. It might be a cached lookup.
        Parameters:
        cd - the core's CoreDescriptor
        solrConfig - the core's SolrConfig
        Returns:
        an IndexSchema
      • getCurrentSchemaModificationVersion

        protected abstract Long getCurrentSchemaModificationVersion​(String configSet,
                                                                    SolrConfig solrConfig,
                                                                    String schemaFile)
        Returns a modification version for the schema file. Null may be returned if not known, and if so it defeats schema caching.
      • loadConfigSetProperties

        protected NamedList loadConfigSetProperties​(CoreDescriptor cd,
                                                    SolrResourceLoader loader)
        Return the ConfigSet properties or null if none.
        Parameters:
        cd - the core's CoreDescriptor
        loader - the core's resource loader
        Returns:
        the ConfigSet properties
        See Also:
        ConfigSetProperties
      • createCoreResourceLoader

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

        public abstract String configSetName​(CoreDescriptor cd)
        Return a name for the ConfigSet for a core to be used for printing/diagnostic purposes.
        Parameters:
        cd - the core's CoreDescriptor
        Returns:
        a name for the core's ConfigSet