CoreAdmin API
console commands
Tip
status
$ php bin/console solr:core:status
--core: will show status for specific core
--omit-index-info: will omit index info
create
$ php bin/console solr:core:create <core-name>
--instance-dir: directory where files for this core should be stored. default is the value specified for the name parameter if not supplied
--config: name of the config file (i.e. solrconfig.xml) relative to instance-dir
--schema: name of the schema file to use for the core.
--data-dir: name of the data directory relative to instance-dir.
--config-set: name of the configset to use for this core.
--collection: name of the collection to which this core belongs. default is the name of the core
--shard: shard id this core represents
--async: request id to track this action which will be processed asynchronously
reload
$ php bin/console solr:core:reload <core-name>
rename
$ php bin/console solr:core:rename <core-name> <new-name>
--async: request id to track this action which will be processed asynchronously
swap
$ php bin/console solr:core:swap <core-name> <other-name>
--async: request id to track this action which will be processed asynchronously
unload
$ php bin/console solr:core:reload <core-name>
--delete-index: will remove the index when unloading the core
--delete-data-dir: removes the data directory and all sub-directories
--delete-instance-dir: removes everything related to the core, including the index directory, configuration files and other related files
--async: request id to track this action which will be processed asynchronously
merge-indexes
$ php bin/console solr:core:merge-indexes <core-name>
--index-dir: multi-valued, directories that would be merged
--src-core: multi-valued, source cores that would be merged
--async: request id to track this action which will be processed asynchronously
split
$ php bin/console solr:core:split <core-name>
--path: multi-valued, the directory path in which a piece of the index will be writtenmulti-valued, the directory path in which a piece of the index will be written
--target-core: multi-valued, the target solr core to which a piece of the index will be mergedmulti-valued, the target solr core to which a piece of the index will be merged
--ranges: comma-separated list of hash ranges in hexadecimal format
--split-key: key to be used for splitting the index
--async: request id to track this action which will be processed asynchronously