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)
.Modifier and Type | Class and Description |
---|---|
static class |
CloudSolrClient.Builder
Constructs
CloudSolrClient instances from provided configuration. |
static class |
CloudSolrClient.RouteException
Deprecated.
since Solr 8.0
|
static class |
CloudSolrClient.RouteResponse
Deprecated.
since Solr 8.0
|
Modifier and Type | Field and Description |
---|---|
static String |
STATE_VERSION |
collectionStateCache
Modifier | Constructor and Description |
---|---|
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, setZkClientTimeout, setZkConnectTimeout, waitForState, waitForState
add, 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, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback
public static final String STATE_VERSION
protected 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
in class BaseCloudSolrClient
protected CloudSolrClient.RouteException getRouteException(SolrException.ErrorCode serverError, NamedList<Throwable> exceptions, Map<String,? extends LBSolrClient.Req> routes)
getRouteException
in class BaseCloudSolrClient
@Deprecated public void setParallelUpdates(boolean parallelUpdates)
CloudSolrClient.Builder
methods instead.@Deprecated public CloudSolrClient.RouteResponse condenseResponse(NamedList response, int timeMillis)
condenseResponse
in class BaseCloudSolrClient
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class BaseCloudSolrClient
IOException
public LBHttpSolrClient getLbClient()
getLbClient
in class BaseCloudSolrClient
public org.apache.http.client.HttpClient getHttpClient()
@Deprecated public void setConnectionTimeout(int timeout)
CloudSolrClient.Builder
methods instead.public ClusterStateProvider getClusterStateProvider()
getClusterStateProvider
in class BaseCloudSolrClient
protected boolean wasCommError(Throwable rootCause)
wasCommError
in class BaseCloudSolrClient
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.