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.

Example Usage<br />

http://localhost:8983/solr/gettingstarted/replication?command=restore&name=backup_na<br />

me"<br />

This will restore the named index snapshot into the current core. Searches will start reflecting the snapshot data<br />

once the restore is complete.<br />

The restore request can also take these additional parameters:<br />

Name<br />

location<br />

name<br />

Description<br />

The location of the backup snapshot file. If not specified, it looks for backups in <strong>Solr</strong>'s data directory.<br />

The name of the backed up index snapshot to be restored. If the name is not provided it looks for<br />

backups with snapshot. format in the location directory. It picks the latest<br />

timestamp backup in that case.<br />

The restore command is an asynchronous call. Once the restore is complete the data reflected will be of the<br />

backed up index which was restored.<br />

Only one restore call can can be made against a core at one point in time. While an ongoing restore operation is<br />

happening subsequent calls for restoring will throw an exception.<br />

Restore Status API<br />

You can also check the status of a restore operation by sending the restorestatus command to the /replic<br />

ation handler, as in this example:<br />

Status API<br />

curl -XGET<br />

http://localhost:8983/solr/gettingstarted/replication?command=restorestatus<br />

Output<br />

<br />

<br />

0<br />

0<br />

<br />

<br />

snapshot.<br />

success<br />

<br />

<br />

The status value can be "In Progress" , "success" or "failed". If it failed then an "exception" will also be sent in the<br />

response.<br />

Configuring Logging<br />

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

538

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

Saved successfully!

Ooh no, something went wrong!