Config Templates
Configs can be declared as immutable
, which means they
cannot be deleted or have their Schema updated by the Schema API.
Immutable configs are uneditable config templates that are the basis for
additional configs. After a config is made immutable, you cannot change
it back without accessing ZooKeeper directly as the
solr
(or solr@EXAMPLE.COM
principal,
if you are using Kerberos) super user.
Solr provides a set of immutable config templates. These templates are only available after Solr initialization, so templates are not available in upgrades until after Solr is initialized or re-initialized. Templates include:
Template Name | Supports Schema API | Uses Schemaless Solr |
---|---|---|
managedTemplate | ||
schemalessTemplate | ||
managedTemplateSecure | ||
schemalessTemplateSecure |
Config templates are managed using the solrctl config
command. For example:
- To create a new config based on the
managedTemplateSecure
template:solrctl config --create newConfig managedTemplateSecure -p immutable=false
- To create a new template (immutable config) from an existing
config:
solrctl config --create newTemplate existingConfig -p immutable=true