Add or Remove a Solr Node in an Existing Solr Cloud
Add a Solr Node
1. Install the index search server as described in Installing the Index Search Server in Cloud Mode and provide the appropriate input for the Zookeeper hosts, Solr hosts, Solr data directory, Solr port, Solr user, and Solr password.
2. Start the Solr node.
3. Invoke the following API using the Solr URL to create a replica on this new node and add it to the Solr cloud:
<SOLR_URL>/solr/admin/collections?action=ADDREPLICA&collection=<Collection_name>&shard=<shard_name>
For example:
Windchill Index Search:
http://host1.ptcnet.ptc.com:9501/solr/admin/collections?action=ADDREPLICA&collection=wblib&shard=shard1
Windchill PartsLink:
http://host1.ptcnet.ptc.com:9501/solr/admin/collections?action=ADDREPLICA&collection=clfstructurelib&shard=shard1
Service Information Manager:
http://host1.ptcnet.ptc.com:9501/solr/admin/collections?action=ADDREPLICA&collection=sisaadlib&shard=shard1
* 
You can also include additional parameters to specify the node on which replica should be created. For example:
http://host1.ptcnet.ptc.com:9501/solr/admin/collections?action=ADDREPLICA&collection=wblib&shard=shard1&node=127.0.0.1:9501_solr
Remove a Solr Node
1. Invoke the following API using the Solr URL to delete a replica from the Solr cloud:
<SOLR_URL>/solr/admin/collections?action=DELETEREPLICA&collection=<Collection_name>&shard=<shard_name>&replica=<replica_node_naeme>
* 
The shard name (shard) and replica node name (coreNodeName) values can be found in the core.properties file located under <INDEX_SEARCH_HOME>/solr/server/solr/<collection_core_name>.
For example:
Windchill Index Search:
http://host1.ptcnet.ptc.com:9501/solr/admin/collections?action=DELETEREPLICA&collection=wblib&shard=shard1&replica=core_node1
Windchill PartsLink:
http://host1.ptcnet.ptc.com:9501/solr/admin/collections?action=DELETEREPLICA&collection=clfstructurelib&shard=shard1&replica=core_node1
S1000D:
http://host1.ptcnet.ptc.com:9501/solr/admin/collections?action=DELETEREPLICA&collection=sisaadlib&shard=shard1&replica=core_node1
2. You can delete the installation files for the removed Solr node.
Was this helpful?