public class CloudHttp2SolrClient extends BaseCloudSolrClient
LBHttp2SolrClient to issue requests.
This class assumes the id field for your documents is called
'id' - if this is not the case, you must set the right name
with BaseCloudSolrClient.setIdField(String).| 限定符和类型 | 类和说明 |
|---|---|
static class |
CloudHttp2SolrClient.Builder
Constructs
CloudHttp2SolrClient instances from provided configuration. |
BaseCloudSolrClient.RouteException, BaseCloudSolrClient.RouteResponse<T extends LBSolrClient.Req>collectionStateCache, STATE_VERSION| 限定符 | 构造器和说明 |
|---|---|
protected |
CloudHttp2SolrClient(CloudHttp2SolrClient.Builder builder)
Create a new client object that connects to Zookeeper and is always aware
of the SolrCloud state.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
ClusterStateProvider |
getClusterStateProvider() |
Http2SolrClient |
getHttpClient() |
LBHttp2SolrClient |
getLbClient() |
protected boolean |
wasCommError(Throwable rootCause) |
condenseResponse, condenseResponse, connect, connect, createRoutes, getDefaultCollection, getDocCollection, getIdField, getMinAchievedReplicationFactor, getParser, getRequestWriter, getRouteException, getShardReplicationFactor, getZkHost, getZkStateReader, isDirectUpdatesToLeadersOnly, isParallelUpdates, isUpdatesToLeaders, objectList, registerCollectionStateWatcher, registerDocCollectionWatcher, request, requestWithRetryOnStaleState, sendRequest, setCollectionCacheTTl, setDefaultCollection, setIdField, setParallelCacheRefreshes, setParser, setRequestWriter, setRetryExpiryTime, setRouteAliasCollection, setZkClientTimeout, setZkConnectTimeout, waitForState, waitForStateadd, add, add, add, add, add, add, add, add, add, addBean, addBean, addBean, addBean, addBeans, addBeans, addBeans, addBeans, addBeans, addBeans, commit, commit, commit, commit, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, deleteByQuery, deleteByQuery, getBinder, getById, getById, getById, getById, getById, getById, getById, getById, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollbackprotected CloudHttp2SolrClient(CloudHttp2SolrClient.Builder builder)
builder - a Http2SolrClient.Builder with the options used to create the client.public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 BaseCloudSolrClientIOExceptionpublic LBHttp2SolrClient getLbClient()
getLbClient 在类中 BaseCloudSolrClientpublic ClusterStateProvider getClusterStateProvider()
public Http2SolrClient getHttpClient()
protected boolean wasCommError(Throwable rootCause)
wasCommError 在类中 BaseCloudSolrClientCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.