Class CloudSolrClient

java.lang.Object
org.apache.solr.client.solrj.SolrClient
org.apache.solr.client.solrj.impl.CloudSolrClient
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable
Direct Known Subclasses:
CloudHttp2SolrClient

public abstract class CloudSolrClient extends SolrClient
A SolrClient that routes requests to ideal nodes, including splitting update batches to the correct shards. It uses LBSolrClient as well, thus offering fail-over abilities if a core or node becomes unavailable. It's able to know where to route requests due to its knowledge of the SolrCloud "cluster state".
See Also:
  • Field Details

  • Constructor Details

    • CloudSolrClient

      protected CloudSolrClient(boolean updatesToLeaders, boolean parallelUpdates, boolean directUpdatesToLeadersOnly)
    • CloudSolrClient

      protected CloudSolrClient(boolean updatesToLeaders, boolean parallelUpdates, boolean directUpdatesToLeadersOnly, int stateRefreshThreads)
  • Method Details