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.

http://localhost:8983/solr/admin/collections?action=ADDREPLICAPROP&shard=shard1&coll<br />

ection=collection1&replica=core_node1&property=testprop&property.value=value1<br />

http://localhost:8983/solr/admin/collections?action=ADDREPLICAPROP&shard=shard1&coll<br />

ection=collection1&replica=core_node3&property=testprop&property.value=value2&shardU<br />

nique=true<br />

Delete Replica Property<br />

/admin/collections?action=DELETEREPLICAPROP&collection=collectionName&shard=shardNa<br />

me&replica=<br />

replicaName&property=<br />

propertyName<br />

Deletes an arbitrary property from a particular replica.<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 />

property string Yes The property to add. Note: this will have the literal 'property.' prepended to<br />

distinguish it from system-maintained properties. So these two forms are<br />

equivalent:<br />

Output<br />

Output Content<br />

property=special<br />

and<br />

property=property.special<br />

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

explain why the request failed.<br />

Examples<br />

Input: This command would delete the preferredLeader (property.preferredLeader) from core_node1.<br />

http://localhost:8983/solr/admin/collections?action=DELETEREPLICAPROP&shard=shard1&c<br />

ollection=collection1&replica=core_node1&property=preferredLeader<br />

Output:<br />

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

593

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

Saved successfully!

Ooh no, something went wrong!