11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

admin/collections?action=DELETESHARD&shard= shardID&collection=<br />

name<br />

Input<br />

Query Parameters<br />

Key Type Required Description<br />

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

shard string Yes The name of the shard to be deleted.<br />

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

is 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 each 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 each replica that is deleted.<br />

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

async string No Request ID to track this action which will be processed<br />

asynchronously.<br />

Output<br />

Output Content<br />

The output will include the status of the request. If the status is anything other than "success", an error message<br />

will explain why the request failed.<br />

Examples<br />

Input<br />

Delete 'shard1' of the "anotherCollection" collection.<br />

http://localhost:8983/solr/admin/collections?action=DELETESHARD&collection=anotherCo<br />

llection&shard=shard1<br />

Output<br />

<br />

<br />

0<br />

558<br />

<br />

<br />

<br />

<br />

0<br />

27<br />

<br />

<br />

<br />

<br />

Create or modify an Alias for a Collection<br />

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

574

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

Saved successfully!

Ooh no, something went wrong!