| 程序包 | 说明 |
|---|---|
| org.apache.solr.client.solrj.impl |
Concrete implementations of client API classes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
CloudSolrClient.Builder |
CloudSolrClient.Builder.getThis() |
CloudSolrClient.Builder |
CloudSolrClient.Builder.sendDirectUpdatesToAnyShardReplica()
Tells
CloudSolrClient.Builder that created clients can send updates to any shard replica (shard leaders and non-leaders). |
CloudSolrClient.Builder |
CloudSolrClient.Builder.sendDirectUpdatesToShardLeadersOnly()
Tells
CloudSolrClient.Builder that created clients should send direct updates to shard leaders only. |
CloudSolrClient.Builder |
CloudSolrClient.Builder.sendUpdatesOnlyToShardLeaders()
Tells
CloudSolrClient.Builder that created clients should send updates only to shard leaders. |
CloudSolrClient.Builder |
CloudSolrClient.Builder.sendUpdatesToAllReplicasInShard()
Tells
CloudSolrClient.Builder that created clients should send updates to all replicas for a shard. |
CloudSolrClient.Builder |
CloudSolrClient.Builder.withClusterStateProvider(ClusterStateProvider stateProvider)
已过时。
since this is an expert feature we don't want to expose this to regular users. To use this feature
extend CloudSolrClient.Builder and pass your custom ClusterStateProvider
|
CloudSolrClient.Builder |
CloudSolrClient.Builder.withLBHttpSolrClient(LBHttpSolrClient loadBalancedSolrClient)
Provides a
LBHttpSolrClient for the builder to use when creating clients. |
CloudSolrClient.Builder |
CloudSolrClient.Builder.withLBHttpSolrClientBuilder(LBHttpSolrClient.Builder lbHttpSolrClientBuilder)
Provides a
HttpClient for the builder to use when creating clients. |
CloudSolrClient.Builder |
CloudSolrClient.Builder.withParallelUpdates(boolean parallelUpdates)
Tells
CloudSolrClient.Builder whether created clients should send shard updates serially or in parallel
When an UpdateRequest affects multiple shards, CloudSolrClient splits it up and sends a request
to each affected shard. |
CloudSolrClient.Builder |
CloudSolrClient.Builder.withRouteAliasCollection(boolean routeAliasCollection)
Reroute each doc to the final collection instead of the first collection.
|
CloudSolrClient.Builder |
CloudSolrClient.Builder.withSolrUrl(Collection<String> solrUrls)
已过时。
use Solr URL constructors instead
|
CloudSolrClient.Builder |
CloudSolrClient.Builder.withSolrUrl(String solrUrl)
已过时。
use Solr-URL constructor instead
|
CloudSolrClient.Builder |
CloudSolrClient.Builder.withZkChroot(String zkChroot)
已过时。
use Zk-host constructor instead
|
CloudSolrClient.Builder |
CloudSolrClient.Builder.withZkHost(Collection<String> zkHosts)
已过时。
use Zk-host constructor instead
|
CloudSolrClient.Builder |
CloudSolrClient.Builder.withZkHost(String zkHost)
已过时。
use Zk-host constructor instead
|
| 构造器和说明 |
|---|
CloudSolrClient(CloudSolrClient.Builder builder)
Create a new client object that connects to Zookeeper and is always aware
of the SolrCloud state.
|
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.