11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<br />

0<br />

603<br />

<br />

<br />

<br />

<br />

0<br />

19<br />

<br />

<br />

<br />

<br />

0<br />

67<br />

<br />

<br />

<br />

<br />

Delete a Replica<br />

/admin/collections?action=DELETEREPLICA&collection= collection&shard= shard&replica=<br />

r<br />

eplica<br />

Delete a named replica from the specified collection and shard. If the corresponding core is up and running the<br />

core is unloaded, the entry is removed from the clusterstate, and (by default) delete the instanceDir and dataDir.<br />

If the node/core is down, the entry is taken off the clusterstate and if the core comes up later it is automatically<br />

unregistered.<br />

Input<br />

Query Parameters<br />

Key Type Required Description<br />

collection string Yes The name of the collection.<br />

shard string Yes The name of the shard that includes the replica to be removed.<br />

replica string Yes The name of the replica to remove.<br />

deleteInstanceDir boolean No By default <strong>Solr</strong> will delete the entire instanceDir of the replica that is<br />

deleted. Set this to false to prevent the instance directory from<br />

being deleted.<br />

deleteDataDir boolean No By default <strong>Solr</strong> will delete the dataDir of the replica that is deleted.<br />

Set this to false to prevent the data directory from being deleted.<br />

deleteIndex boolean No By default <strong>Solr</strong> will delete the index of the replica that is deleted. Set<br />

this to false to prevent the index directory from being deleted.<br />

onlyIfDown boolean No When set to 'true' will not take any action if the replica is active.<br />

Default 'false'<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

577

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!