public class CloudSolrClient extends BaseCloudSolrClient
LBHttpSolrClient 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 |
CloudSolrClient.Builder
Constructs
CloudSolrClient instances from provided configuration. |
static class |
CloudSolrClient.RouteException
已过时。
since Solr 8.0
|
static class |
CloudSolrClient.RouteResponse
已过时。
since Solr 8.0
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
STATE_VERSION |
collectionStateCache| 限定符 | 构造器和说明 |
|---|---|
protected |
CloudSolrClient(CloudSolrClient.Builder builder)
Create a new client object that connects to Zookeeper and is always aware
of the SolrCloud state.
|
condenseResponse, connect, connect, getDefaultCollection, getDocCollection, getIdField, getMinAchievedReplicationFactor, getParser, getRequestWriter, 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 CloudSolrClient(CloudSolrClient.Builder builder)
builder - a CloudSolrClient.Builder with the options used to create the client.@Deprecated public void setSoTimeout(int timeout)
CloudSolrClient.Builder methods instead.protected Map<String,LBHttpSolrClient.Req> createRoutes(UpdateRequest updateRequest, ModifiableSolrParams routableParams, DocCollection col, DocRouter router, Map<String,List<String>> urlMap, String idField)
createRoutes 在类中 BaseCloudSolrClientprotected CloudSolrClient.RouteException getRouteException(SolrException.ErrorCode serverError, NamedList<Throwable> exceptions, Map<String,? extends LBSolrClient.Req> routes)
getRouteException 在类中 BaseCloudSolrClient@Deprecated public void setParallelUpdates(boolean parallelUpdates)
CloudSolrClient.Builder methods instead.@Deprecated public CloudSolrClient.RouteResponse condenseResponse(NamedList response, int timeMillis)
condenseResponse 在类中 BaseCloudSolrClientpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 BaseCloudSolrClientIOExceptionpublic LBHttpSolrClient getLbClient()
getLbClient 在类中 BaseCloudSolrClientpublic org.apache.http.client.HttpClient getHttpClient()
@Deprecated public void setConnectionTimeout(int timeout)
CloudSolrClient.Builder methods instead.public ClusterStateProvider getClusterStateProvider()
protected boolean wasCommError(Throwable rootCause)
wasCommError 在类中 BaseCloudSolrClientCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.