@Deprecated public CloudSolrClient(String zkHost,HttpClient httpClient){
  this.zkHost=zkHost;
  this.clientIsInternal=httpClient == null;
  this.myClient=httpClient == null ? HttpClientUtil.createClient(null) : httpClient;
  this.lbClient=createLBHttpSolrClient(myClient);
  this.updatesToLeaders=true;
  this.directUpdatesToLeadersOnly=false;
  shutdownLBHttpSolrServer=true;
  lbClient.addQueryParams(STATE_VERSION);
}

@ Deprecated public CloudSolrClient ( String zkHost , HttpClient httpClient ) { this . zkHost = zkHost ; this . clientIsInternal = httpClient == null ; this . myClient = httpClient == null ? HttpClientUtil . createClient ( null ) : httpClient ; this . lbClient = createLBHttpSolrClient ( myClient ) ; this . updatesToLeaders = true ; this . directUpdatesToLeadersOnly = false ; shutdownLBHttpSolrServer = true ; lbClient . addQueryParams ( STATE_VERSION ) ; }
create a new client object that connects to zookeeper and is always aware of the solrcloud state . if there is a fully redundant zookeeper quorum and solrcloud has enough replicas for every shard in a collection , there is no single point of failure . updates will be sent to shard leaders by default .
