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.

}<br />

}<br />

"127.0.1.1:8900_solr"]<br />

Request Status<br />

/admin/collections?action=REQUESTSTATUS&requestid=request-id<br />

Request the status and response of an already submitted Asynchronous Collection API call. This call is also<br />

used to clear up the stored statuses (See below).<br />

Input<br />

Query Parameters<br />

Key Type Required Description<br />

requestid string Yes The user defined request-id for the request. This can be used to track the<br />

status of the submitted asynchronous task. -1 is a special request id which is<br />

used to cleanup the stored states for all of the already completed/failed tasks.<br />

Examples<br />

Input: Valid Request Status<br />

http://localhost:8983/solr/admin/collections?action=REQUESTSTATUS&requestid=1000<br />

Output<br />

<br />

<br />

0<br />

1<br />

<br />

<br />

completed<br />

found 1000 in completed tasks<br />

<br />

<br />

Input: Invalid RequestId<br />

http://localhost:8983/solr/admin/collections?action=REQUESTSTATUS&requestid=1004<br />

Output<br />

<br />

<br />

0<br />

1<br />

<br />

<br />

notfound<br />

Did not find taskid [1004] in any tasks queue<br />

<br />

<br />

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

589

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

Saved successfully!

Ooh no, something went wrong!