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.

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

asynchronously.<br />

Examples<br />

Input<br />

http://localhost:8983/solr/admin/collections?action=DELETEREPLICA&collection=test2&s<br />

hard=shard2&replica=core_node3<br />

Output<br />

Output Content<br />

<br />

0110<br />

<br />

Add Replica<br />

/admin/collections?action=ADDREPLICA&collection= collection&shard= shard&node=<br />

solr_no<br />

de_name<br />

Add a replica to a shard in a collection. The node name can be specified if the replica is to be created in a<br />

specific node<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 to which replica is to be added.<br />

If shard is not specified, then _route_ must be.<br />

_route_ string No* If the exact shard name is not known, users may pass the _route_ value<br />

and the system would identify the name of the shard.<br />

Ignored if the shard param is also specified.<br />

node string No The name of the node where the replica should be created<br />

instanceDir string No The instanceDir for the core that will be created<br />

dataDir string No The directory in which the core should be created<br />

property.na<br />

me=<br />

value<br />

string No Set core property name to value. See Defining core.properties.<br />

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

Examples<br />

Input<br />

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

578

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

Saved successfully!

Ooh no, something went wrong!