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)
表示只從存活的節點上獲取數據。因此這個時候數據極有可能是不完整的。