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=ADDREPLICA&collection=test2&shar<br />

d=shard2&node=192.167.1.2:8983_solr<br />

Output<br />

Output Content<br />

<br />

<br />

0<br />

3764<br />

<br />

<br />

<br />

<br />

0<br />

3450<br />

<br />

test2_shard2_replica4<br />

<br />

<br />

<br />

Cluster Properties<br />

/admin/collections?action=CLUSTERPROP&name= propertyName&val=<br />

propertyValue<br />

Add, edit or delete a cluster-wide property.<br />

Input<br />

Query Parameters<br />

Key Type Required Description<br />

name string Yes The name of the property. The two supported properties names are urlScheme a<br />

nd autoAddReplicas. Other names are rejected with an error.<br />

val string Yes The value of the property. If the value is empty or null, the property is unset.<br />

Output<br />

Output Content<br />

The response will include the status of the request and the properties that were updated or removed. If the status<br />

is anything other than "0", an error message will explain why the request failed.<br />

Examples<br />

Input<br />

http://localhost:8983/solr/admin/collections?action=CLUSTERPROP&name=urlScheme&val=h<br />

ttps<br />

Output<br />

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

579

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

Saved successfully!

Ooh no, something went wrong!