# Uses of Class
org.apache.solr.client.solrj.SolrServerException

Packages that use SolrServerException
Package
Description
org.apache.solr.client.solrj
Primary APIs for communicating with a Solr Server from a Java client.
org.apache.solr.client.solrj.impl
Implementations of some client API classes, and their friends.
org.apache.solr.client.solrj.request
Convenience classes for dealing with various types of Solr requests.

## Uses of SolrServerException in org.apache.solr.client.solrj

Methods in org.apache.solr.client.solrj that throw SolrServerException
Modifier and Type
Method
Description
`UpdateResponse`
SolrClient.`add(String collection, Collection<SolrInputDocument> docs)`
Adds a collection of documents
`UpdateResponse`
SolrClient.`add(String collection, Collection<SolrInputDocument> docs, int commitWithinMs)`
Adds a collection of documents, specifying max time before they become committed
`UpdateResponse`
SolrClient.`add(String collection, Iterator<SolrInputDocument> docIterator)`
Adds the documents supplied by the given iterator.
`UpdateResponse`
SolrClient.`add(String collection, SolrInputDocument doc)`
Adds a single document
`UpdateResponse`
SolrClient.`add(String collection, SolrInputDocument doc, int commitWithinMs)`
Adds a single document specifying max time before it becomes committed
`UpdateResponse`
SolrClient.`add(Collection<SolrInputDocument> docs)`
Adds a collection of documents
`UpdateResponse`
SolrClient.`add(Collection<SolrInputDocument> docs, int commitWithinMs)`
Adds a collection of documents, specifying max time before they become committed
`UpdateResponse`
SolrClient.`add(Iterator<SolrInputDocument> docIterator)`
Adds the documents supplied by the given iterator.
`UpdateResponse`
SolrClient.`add(SolrInputDocument doc)`
Adds a single document
`UpdateResponse`
SolrClient.`add(SolrInputDocument doc, int commitWithinMs)`
Adds a single document specifying max time before it becomes committed
`UpdateResponse`
SolrClient.`addBean(Object obj)`
Adds a single bean
`UpdateResponse`
SolrClient.`addBean(Object obj, int commitWithinMs)`
Adds a single bean specifying max time before it becomes committed
`UpdateResponse`
SolrClient.`addBean(String collection, Object obj)`
Adds a single bean
`UpdateResponse`
SolrClient.`addBean(String collection, Object obj, int commitWithinMs)`
Adds a single bean specifying max time before it becomes committed
`UpdateResponse`
SolrClient.`addBeans(String collection, Collection<?> beans)`
Adds a collection of beans
`UpdateResponse`
SolrClient.`addBeans(String collection, Collection<?> beans, int commitWithinMs)`
Adds a collection of beans specifying max time before they become committed
`UpdateResponse`
SolrClient.`addBeans(String collection, Iterator<?> beanIterator)`
Adds the beans supplied by the given iterator.
`UpdateResponse`
SolrClient.`addBeans(Collection<?> beans)`
Adds a collection of beans
`UpdateResponse`
SolrClient.`addBeans(Collection<?> beans, int commitWithinMs)`
Adds a collection of beans specifying max time before they become committed
`UpdateResponse`
SolrClient.`addBeans(Iterator<?> beanIterator)`
Adds the beans supplied by the given iterator.
`R`
SolrClient.SolrClientFunction.`apply(C c)`
`UpdateResponse`
SolrClient.`commit()`
Performs an explicit commit, causing pending documents to be committed for indexing
`UpdateResponse`
SolrClient.`commit(boolean waitFlush, boolean waitSearcher)`
Performs an explicit commit, causing pending documents to be committed for indexing
`UpdateResponse`
SolrClient.`commit(boolean waitFlush, boolean waitSearcher, boolean softCommit)`
Performs an explicit commit, causing pending documents to be committed for indexing
`UpdateResponse`
SolrClient.`commit(String collection)`
Performs an explicit commit, causing pending documents to be committed for indexing
`UpdateResponse`
SolrClient.`commit(String collection, boolean waitFlush, boolean waitSearcher)`
Performs an explicit commit, causing pending documents to be committed for indexing
`UpdateResponse`
SolrClient.`commit(String collection, boolean waitFlush, boolean waitSearcher, boolean softCommit)`
Performs an explicit commit, causing pending documents to be committed for indexing
`UpdateResponse`
SolrClient.`deleteById(String id)`
Deletes a single document by unique ID.
`UpdateResponse`
SolrClient.`deleteById(String id, int commitWithinMs)`
Deletes a single document by unique ID, specifying max time before commit.
`UpdateResponse`
SolrClient.`deleteById(String collection, String id)`
Deletes a single document by unique ID.
`UpdateResponse`
SolrClient.`deleteById(String collection, String id, int commitWithinMs)`
Deletes a single document by unique ID, specifying max time before commit.
`UpdateResponse`
SolrClient.`deleteById(String collection, List<String> ids)`
Deletes a list of documents by unique ID.
`UpdateResponse`
SolrClient.`deleteById(String collection, List<String> ids, int commitWithinMs)`
Deletes a list of documents by unique ID, specifying max time before commit.
`UpdateResponse`
SolrClient.`deleteById(List<String> ids)`
Deletes a list of documents by unique ID.
`UpdateResponse`
SolrClient.`deleteById(List<String> ids, int commitWithinMs)`
Deletes a list of documents by unique ID, specifying max time before commit.
`UpdateResponse`
SolrClient.`deleteByQuery(String query)`
Deletes documents from the index based on a query
`UpdateResponse`
SolrClient.`deleteByQuery(String query, int commitWithinMs)`
Deletes documents from the index based on a query, specifying max time before commit
`UpdateResponse`
SolrClient.`deleteByQuery(String collection, String query)`
Deletes documents from the index based on a query
`UpdateResponse`
SolrClient.`deleteByQuery(String collection, String query, int commitWithinMs)`
Deletes documents from the index based on a query, specifying max time before commit
`SolrDocument`
SolrClient.`getById(String id)`
Retrieves the SolrDocument associated with the given identifier.
`SolrDocument`
SolrClient.`getById(String collection, String id)`
Retrieves the SolrDocument associated with the given identifier.
`SolrDocument`
SolrClient.`getById(String collection, String id, SolrParams params)`
Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.
`SolrDocumentList`
SolrClient.`getById(String collection, Collection<String> ids)`
Retrieves the SolrDocuments associated with the given identifiers.
`SolrDocumentList`
SolrClient.`getById(String collection, Collection<String> ids, SolrParams params)`
Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.
`SolrDocument`
SolrClient.`getById(String id, SolrParams params)`
Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.
`SolrDocumentList`
SolrClient.`getById(Collection<String> ids)`
Retrieves the SolrDocuments associated with the given identifiers.
`SolrDocumentList`
SolrClient.`getById(Collection<String> ids, SolrParams params)`
Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.
`UpdateResponse`
SolrClient.`optimize()`
Performs an explicit optimize, causing a merge of all segments to one.
`UpdateResponse`
SolrClient.`optimize(boolean waitFlush, boolean waitSearcher)`
Performs an explicit optimize, causing a merge of all segments to one.
`UpdateResponse`
SolrClient.`optimize(boolean waitFlush, boolean waitSearcher, int maxSegments)`
Performs an explicit optimize, causing a merge of all segments to one.
`UpdateResponse`
SolrClient.`optimize(String collection)`
Performs an explicit optimize, causing a merge of all segments to one.
`UpdateResponse`
SolrClient.`optimize(String collection, boolean waitFlush, boolean waitSearcher)`
Performs an explicit optimize, causing a merge of all segments to one.
`UpdateResponse`
SolrClient.`optimize(String collection, boolean waitFlush, boolean waitSearcher, int maxSegments)`
Performs an explicit optimize, causing a merge of all segments to one.
`SolrPingResponse`
SolrClient.`ping()`
Issues a ping request to check if the server is alive
`SolrPingResponse`
SolrClient.`ping(String collection)`
Issues a ping request to check if the collection's replicas are alive
`final T`
SolrRequest.`process(SolrClient client)`
Send this request to a `SolrClient` and return the response
`final T`
SolrRequest.`process(SolrClient client, String collection)`
Send this request to a `SolrClient` and return the response
`final T`
SolrRequest.`processWithBaseUrl(HttpSolrClientBase client, String baseUrl, String collection)`
Send this request to a `SolrClient` and return the response
`QueryResponse`
SolrClient.`query(String collection, SolrParams params)`
Performs a query to the Solr server
`QueryResponse`
SolrClient.`query(String collection, SolrParams params, SolrRequest.METHOD method)`
Performs a query to the Solr server
`QueryResponse`
SolrClient.`query(SolrParams params)`
Performs a query to the Solr server
`QueryResponse`
SolrClient.`query(SolrParams params, SolrRequest.METHOD method)`
Performs a query to the Solr server
`QueryResponse`
SolrClient.`queryAndStreamResponse(String collection, SolrParams params, FastStreamingDocsCallback callback)`
`QueryResponse`
SolrClient.`queryAndStreamResponse(String collection, SolrParams params, StreamingResponseCallback callback)`
Query solr, and stream the results.
`QueryResponse`
SolrClient.`queryAndStreamResponse(SolrParams params, StreamingResponseCallback callback)`
Query solr, and stream the results.
`final NamedList<Object>`
SolrClient.`request(SolrRequest<?> request)`
Execute a request against a Solr server using the default collection
`abstract NamedList<Object>`
SolrClient.`request(SolrRequest<?> request, String collection)`
Execute a request against a Solr server for a given collection
`UpdateResponse`
SolrClient.`rollback()`
Performs a rollback of all non-committed documents pending.
`UpdateResponse`
SolrClient.`rollback(String collection)`
Performs a rollback of all non-committed documents pending.

## Uses of SolrServerException in org.apache.solr.client.solrj.impl

Methods in org.apache.solr.client.solrj.impl that throw SolrServerException
Modifier and Type
Method
Description
`protected Exception`
LBSolrClient.`doRequest(LBSolrClient.Endpoint baseUrl, LBSolrClient.Req req, LBSolrClient.Rsp rsp, boolean isNonRetryable, boolean isZombie)`
`LBSolrClient.Endpoint`
LBSolrClient.EndpointIterator.`nextOrError()`
`LBSolrClient.Endpoint`
LBSolrClient.EndpointIterator.`nextOrError(Exception previousEx)`
`protected HttpJdkSolrClient.PreparedRequest`
HttpJdkSolrClient.`prepareRequest(SolrRequest<?> solrRequest, String collection, String overrideBaseUrl)`
`protected NamedList<Object>`
HttpSolrClientBase.`processErrorsAndResponse(int httpStatus, String responseReason, String responseMethod, ResponseParser processor, InputStream is, String mimeType, String encoding, boolean isV2Api, String urlExceptionMessage)`
`NamedList<Object>`
CloudSolrClient.`request(SolrRequest<?> request, String collection)`
`NamedList<Object>`
ConcurrentUpdateBaseSolrClient.`request(SolrRequest<?> request, String collection)`
`NamedList<Object>`
HttpJdkSolrClient.`request(SolrRequest<?> solrRequest, String collection)`
`LBSolrClient.Rsp`
LBSolrClient.`request(LBSolrClient.Req req)`
Tries to query a live server from the list provided in Req.
`NamedList<Object>`
LBSolrClient.`request(SolrRequest<?> request, String collection)`
Tries to query a live server.
`NamedList<Object>`
LBSolrClient.`request(SolrRequest<?> request, String collection, Integer numServersToTry)`
`protected abstract CompletableFuture<NamedList<Object>>`
LBAsyncSolrClient.`requestAsyncWithUrl(SolrClient client, String baseUrl, SolrRequest<?> request)`
`NamedList<Object>`
HttpJdkSolrClient.`requestWithBaseUrl(String baseUrl, SolrRequest<?> solrRequest, String collection)`
`abstract NamedList<Object>`
HttpSolrClientBase.`requestWithBaseUrl(String baseUrl, SolrRequest<?> solrRequest, String collection)`
Executes a SolrRequest using the provided URL to temporarily override any "base URL" currently used by this client
`protected NamedList<Object>`
CloudSolrClient.`requestWithRetryOnStaleState(SolrRequest<?> request, int retryCount, List<String> inputCollections, boolean skipStateVersion, Map<String,CompletableFuture<DocCollection>> pendingRefreshes, boolean waitedForRefresh)`
As this class doesn't watch external collections on the client side, there's a chance that the request will fail due to cached stale state, which means the state must be refreshed from ZK and retried.
`protected NamedList<Object>`
CloudSolrClient.`sendRequest(SolrRequest<?> request, List<String> inputCollections)`

## Uses of SolrServerException in org.apache.solr.client.solrj.request

Methods in org.apache.solr.client.solrj.request that throw SolrServerException
Modifier and Type
Method
Description
`UpdateResponse`
UpdateRequest.`commit(SolrClient client, String collection)`
`static CoreAdminResponse`
CoreAdminRequest.`createCore(String name, String instanceDir, SolrClient client)`
`static CoreAdminResponse`
CoreAdminRequest.`createCore(String name, String instanceDir, SolrClient client, String configFile, String schemaFile)`
`static CoreAdminResponse`
CoreAdminRequest.`createCore(String name, String instanceDir, SolrClient client, String configFile, String schemaFile, String dataDir, String ulogDir)`
`static CoreStatusResponse.SingleCoreData`
CoreAdminRequest.`getCoreStatus(String coreName, boolean getIndexInfo, SolrClient client)`
`static CoreStatusResponse.SingleCoreData`
CoreAdminRequest.`getCoreStatus(String coreName, SolrClient client)`
`static CoreAdminResponse`
CoreAdminRequest.`getStatus(String name, SolrClient client)`
`static List<String>`
CollectionAdminRequest.`listCollections(SolrClient client)`
Returns a SolrRequest to get a list of collections in the cluster
`static CoreAdminResponse`
CoreAdminRequest.`mergeIndexes(String name, String[] indexDirs, String[] srcCores, SolrClient client)`
`RequestStatusState`
CollectionAdminRequest.AsyncCollectionAdminRequest.`processAndWait(String asyncId, SolrClient client, long timeoutSeconds)`
Send this request to a Solr server, and wait (up to a timeout) for the request to complete or fail
`RequestStatusState`
CollectionAdminRequest.AsyncCollectionAdminRequest.`processAndWait(SolrClient client, long timeoutSeconds)`
Send this request to a Solr server, and wait (up to a timeout) for the request to complete or fail
`String`
CollectionAdminRequest.AsyncCollectionAdminRequest.`processAsync(String asyncId, SolrClient client)`
Process this request asynchronously, using a specified request id
`String`
CollectionAdminRequest.AsyncCollectionAdminRequest.`processAsync(SolrClient client)`
Process this request asynchronously, generating and returning a request id
`static CoreAdminResponse`
CoreAdminRequest.`reloadCore(String name, SolrClient client)`
`static CoreAdminResponse`
CoreAdminRequest.`renameCore(String coreName, String newName, SolrClient client)`
Rename an existing core.
`static CoreAdminResponse`
CoreAdminRequest.`swapCore(String core1, String core2, SolrClient client)`
Swap two existing cores.
`static CoreAdminResponse`
CoreAdminRequest.`unloadCore(String name, boolean deleteIndex, boolean deleteInstanceDir, SolrClient client)`
`static CoreAdminResponse`
CoreAdminRequest.`unloadCore(String name, boolean deleteIndex, SolrClient client)`
`static CoreAdminResponse`
CoreAdminRequest.`unloadCore(String name, SolrClient client)`
`RequestStatusState`
CollectionAdminRequest.RequestStatus.`waitFor(SolrClient client, long timeoutSeconds)`
Wait until the asynchronous request is either completed or failed, up to a timeout
`static void`
CollectionAdminRequest.`waitForAsyncRequest(String requestId, SolrClient client, long timeout)`