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.

It's possible to edit multiple attributes at a time<br />

Query Parameters<br />

Key Type Required Description<br />

collection string Yes The name of the collection to be modified.<br />

string Yes Key-value pairs of attribute names and attribute values.<br />

The attributes that can be modified are:<br />

maxShardsPerNode<br />

replicationFactor<br />

autoAddReplicas<br />

rule<br />

snitch<br />

See the CREATE section above for details on these attributes.<br />

Reload a Collection<br />

/admin/collections?action=RELOAD&name= name<br />

The RELOAD action is used when you have changed a configuration in ZooKeeper.<br />

Input<br />

Query Parameters<br />

Key Type Required Description<br />

name string Yes The name of the collection to reload.<br />

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

Output<br />

Output Content<br />

The response will include the status of the request and the cores that were reloaded. If the status is anything<br />

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

Examples<br />

Input<br />

http://localhost:8983/solr/admin/collections?action=RELOAD&name=newCollection<br />

Output<br />

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

569

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

Saved successfully!

Ooh no, something went wrong!