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.

http://localhost:8983/solr/admin/collections?action=DELETESTATUS&flush=true<br />

Output<br />

<br />

<br />

0<br />

1<br />

<br />

successfully cleared stored collection api responses <br />

<br />

List Collections<br />

/admin/collections?action=LIST<br />

Fetch the names of the collections in the cluster.<br />

Example<br />

Input<br />

http://localhost:8983/solr/admin/collections?action=LIST&wt=json<br />

Output<br />

{<br />

"responseHeader":{<br />

"status":0,<br />

"QTime":2011},<br />

"collections":["collection1",<br />

"example1",<br />

"example2"]}<br />

Add Replica Property<br />

/admin/collections?action=ADDREPLICAPROP&collection=collectionName&shard=shardName<br />

&replica=replicaName&property=propertyName&property.value=value<br />

Assign an arbitrary property to a particular replica and give it the value specified. If the property already exists, it<br />

will be overwritten with the new value.<br />

Input<br />

Query Parameters<br />

Key Type Required Description<br />

collection string Yes The name of the collection this replica belongs to.<br />

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

replica string Yes The replica, e.g. core_node1.<br />

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

591

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

Saved successfully!

Ooh no, something went wrong!