W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
刪除已經(jīng)失敗或已經(jīng)完成的Asynchronous Collection API調(diào)用的存儲響應(yīng)。
/admin/collections?action=DELETESTATUS&requestid=request-id
存儲響應(yīng)應(yīng)該被清除的異步調(diào)用的請求ID。
設(shè)置為true
來清除所有存儲的完成和失敗的異步請求響應(yīng)。
在本例中輸入:有效的請求ID
http://localhost:8983/solr/admin/collections?action=DELETESTATUS&requestid=foo
得到的輸出:
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1</int>
</lst>
<str name="status">successfully removed stored response for [foo]</str>
</response>
或者輸入:無效的請求ID
http://localhost:8983/solr/admin/collections?action=DELETESTATUS&requestid=bar
得到輸出:
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1</int>
</lst>
<str name="status">[bar] not found in stored responses</str>
</response>
或者輸入:清除所有存儲的狀態(tài)
http://localhost:8983/solr/admin/collections?action=DELETESTATUS&flush=true
得到輸出:
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1</int>
</lst>
<str name="status"> successfully cleared stored collection api responses </str>
</response>
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: