Generate a Collection Configuration Using Configs

A collection configuration is a necessary prerequisite of creating a collection. Learn how create one using configs.

Configs are named configuration sets that you can reference when creating collections.

You can manage configuration objects directly using the solrctl config command, which is a wrapper script for the Solr ConfigSets API.

solrctl config --create <name> <baseConfig> [-p <name>=<value>]
  1. If you are using Kerberos, kinit as a user with permission to create the collection configuration:
    kinit solradmin@EXAMPLE.COM

    Replace EXAMPLE.COM with your Kerberos realm name.

  2. To generate configuration files for a collection, run the following command:
    solrctl config --create <configName> <baseConfige> -p immutable=false
    where
    <configName>
    is the user-specified name of the config
    <baseConfig>
    is the name of an existing config template
    To list all available config templates, use the solrctl instancedir --list command.
    -p <name>=<value>
    Overrides a <baseConfig> setting. The only config property that you can override is immutable, so the possible options are -p immutable=true and -p immutable=false. If you are copying an immutable config, such as a template, use -p immutable=false to make sure that you can edit the new config.
    For example, to create the configuration logs_config based on managedTemplate:
    solrctl config --create logs_config managedTemplate -p immutable=false