Solr[Q] -No live SolrServers available to handle this request, no servers hosting shard


No live SolrServers available to handle this request , no servers hosting shard

當某一片索引對應的結點全部宕了以后,會報這個異常。

"error": {
    "msg": "no servers hosting shard: ",
    "code": 503
  }

  

需要在請求上加上:

params.setParam("shards.tolerant", true)

表示只從存活的節點上獲取數據。因此這個時候數據極有可能是不完整的。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM