Nirmal Prabhu walks us through configuring replicated Solr instances:
Step 4: [Creating master Core]
First, we need to create a core for indexing the data. The Solr create command has the following options:
- -c <name> — Name of the core or collection to create (required).
- -d <confdir> — The configuration directory, useful in the SolrCloud mode.
- -n <configName> — The configuration name. This defaults to the same name as the core or collection.
- -p <port> — Port of a local Solr instance to send the create command to; by default the script tries to detect the port by looking for running Solr instances.
- -s <shards> — Number of shards to split a collection into, default is 1.
- -rf <replicas> — Number of copies of each document in the collection. The default is 1.
In this example, we will use the -c parameter for core name, -rf parameter for replication and -d parameter for the configuration directory.
Read on for step-by-step instructions.