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 Concrete implementations of client API classes.org.apache.solr.client.solrj.io.stream Stream implementations for the Streaming Aggregation APIorg.apache.solr.client.solrj.request Convenience classes for dealing with various types of Solr requests.org.apache.solr.common.cloud Common Solr Cloud and ZooKeeper related classes reused on both clients & server. -
-
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 documentsUpdateResponse
SolrClient. add(String collection, Collection<SolrInputDocument> docs, int commitWithinMs)
Adds a collection of documents, specifying max time before they become committedUpdateResponse
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 documentUpdateResponse
SolrClient. add(String collection, SolrInputDocument doc, int commitWithinMs)
Adds a single document specifying max time before it becomes committedUpdateResponse
SolrClient. add(Collection<SolrInputDocument> docs)
Adds a collection of documentsUpdateResponse
SolrClient. add(Collection<SolrInputDocument> docs, int commitWithinMs)
Adds a collection of documents, specifying max time before they become committedUpdateResponse
SolrClient. add(Iterator<SolrInputDocument> docIterator)
Adds the documents supplied by the given iterator.UpdateResponse
SolrClient. add(SolrInputDocument doc)
Adds a single document ManySolrClient
implementations have drastically slower indexing performance when documents are added individually.UpdateResponse
SolrClient. add(SolrInputDocument doc, int commitWithinMs)
Adds a single document specifying max time before it becomes committedUpdateResponse
SolrClient. addBean(Object obj)
Adds a single bean The bean is converted to aSolrInputDocument
by the client'sDocumentObjectBinder
UpdateResponse
SolrClient. addBean(Object obj, int commitWithinMs)
Adds a single bean specifying max time before it becomes committed The bean is converted to aSolrInputDocument
by the client'sDocumentObjectBinder
UpdateResponse
SolrClient. addBean(String collection, Object obj)
Adds a single bean The bean is converted to aSolrInputDocument
by the client'sDocumentObjectBinder
UpdateResponse
SolrClient. addBean(String collection, Object obj, int commitWithinMs)
Adds a single bean specifying max time before it becomes committed The bean is converted to aSolrInputDocument
by the client'sDocumentObjectBinder
UpdateResponse
SolrClient. addBeans(String collection, Collection<?> beans)
Adds a collection of beans The beans are converted toSolrInputDocument
s by the client'sDocumentObjectBinder
UpdateResponse
SolrClient. addBeans(String collection, Collection<?> beans, int commitWithinMs)
Adds a collection of beans specifying max time before they become committed The beans are converted toSolrInputDocument
s by the client'sDocumentObjectBinder
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 The beans are converted toSolrInputDocument
s by the client'sDocumentObjectBinder
UpdateResponse
SolrClient. addBeans(Collection<?> beans, int commitWithinMs)
Adds a collection of beans specifying max time before they become committed The beans are converted toSolrInputDocument
s by the client'sDocumentObjectBinder
UpdateResponse
SolrClient. addBeans(Iterator<?> beanIterator)
Adds the beans supplied by the given iterator.UpdateResponse
SolrClient. commit()
Performs an explicit commit, causing pending documents to be committed for indexing waitFlush=true and waitSearcher=true to be inline with the defaults for plain HTTP accessUpdateResponse
SolrClient. commit(boolean waitFlush, boolean waitSearcher)
Performs an explicit commit, causing pending documents to be committed for indexing Be very careful when triggering commits from the client side.UpdateResponse
SolrClient. commit(boolean waitFlush, boolean waitSearcher, boolean softCommit)
Performs an explicit commit, causing pending documents to be committed for indexing Be very careful when triggering commits from the client side.UpdateResponse
SolrClient. commit(String collection)
Performs an explicit commit, causing pending documents to be committed for indexing waitFlush=true and waitSearcher=true to be inline with the defaults for plain HTTP accessUpdateResponse
SolrClient. commit(String collection, boolean waitFlush, boolean waitSearcher)
Performs an explicit commit, causing pending documents to be committed for indexing Be very careful when triggering commits from the client side.UpdateResponse
SolrClient. commit(String collection, boolean waitFlush, boolean waitSearcher, boolean softCommit)
Performs an explicit commit, causing pending documents to be committed for indexing Be very careful when triggering commits from the client side.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 queryUpdateResponse
SolrClient. deleteByQuery(String query, int commitWithinMs)
Deletes documents from the index based on a query, specifying max time before commitUpdateResponse
SolrClient. deleteByQuery(String collection, String query)
Deletes documents from the index based on a queryUpdateResponse
SolrClient. deleteByQuery(String collection, String query, int commitWithinMs)
Deletes documents from the index based on a query, specifying max time before commitSolrDocument
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 aliveSolrPingResponse
SolrClient. ping(String collection)
Issues a ping request to check if the collection's replicas are aliveT
SolrRequest. process(SolrClient client)
Send this request to aSolrClient
and return the responseT
SolrRequest. process(SolrClient client, String collection)
Send this request to aSolrClient
and return the responseQueryResponse
SolrClient. query(String collection, SolrParams params)
Performs a query to the Solr serverQueryResponse
SolrClient. query(String collection, SolrParams params, SolrRequest.METHOD method)
Performs a query to the Solr serverQueryResponse
SolrClient. query(SolrParams params)
Performs a query to the Solr serverQueryResponse
SolrClient. query(SolrParams params, SolrRequest.METHOD method)
Performs a query to the Solr serverQueryResponse
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.NamedList<Object>
SolrClient. request(SolrRequest request)
Execute a request against a Solr serverabstract NamedList<Object>
SolrClient. request(SolrRequest request, String collection)
Execute a request against a Solr server for a given collectionUpdateResponse
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 org.apache.http.client.methods.HttpRequestBase
DelegationTokenHttpSolrClient. createMethod(SolrRequest request, String collection)
protected org.apache.http.client.methods.HttpRequestBase
HttpSolrClient. createMethod(SolrRequest request, String collection)
protected Exception
LBSolrClient. doRequest(String baseUrl, LBSolrClient.Req req, LBSolrClient.Rsp rsp, boolean isNonRetryable, boolean isZombie)
protected NamedList<Object>
HttpSolrClient. executeMethod(org.apache.http.client.methods.HttpRequestBase method, Principal userPrincipal, ResponseParser processor, boolean isV2Api)
HttpSolrClient.HttpUriRequestResponse
HttpSolrClient. httpUriRequest(SolrRequest request)
HttpSolrClient.HttpUriRequestResponse
HttpSolrClient. httpUriRequest(SolrRequest request, ResponseParser processor)
NamedList<Object>
BaseCloudSolrClient. request(SolrRequest request, String collection)
NamedList<Object>
ConcurrentUpdateHttp2SolrClient. request(SolrRequest request, String collection)
NamedList<Object>
ConcurrentUpdateSolrClient. request(SolrRequest request, String collection)
NamedList<Object>
Http2SolrClient. request(SolrRequest request, String collection)
NamedList<Object>
Http2SolrClient. request(SolrRequest solrRequest, String collection, Http2SolrClient.OnComplete onComplete)
NamedList<Object>
HttpSolrClient. request(SolrRequest request, String collection)
Process the request.NamedList<Object>
HttpSolrClient. request(SolrRequest request, ResponseParser processor)
NamedList<Object>
HttpSolrClient. request(SolrRequest request, ResponseParser processor, String collection)
LBHttpSolrClient.Rsp
LBHttpSolrClient. request(LBHttpSolrClient.Req req)
Deprecated.useLBSolrClient.request(LBSolrClient.Req)
insteadLBSolrClient.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 NamedList<Object>
BaseCloudSolrClient. requestWithRetryOnStaleState(SolrRequest request, int retryCount, List<String> inputCollections)
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>
BaseCloudSolrClient. sendRequest(SolrRequest request, List<String> inputCollections)
-
Uses of SolrServerException in org.apache.solr.client.solrj.io.stream
Methods in org.apache.solr.client.solrj.io.stream that throw SolrServerException Modifier and Type Method Description TupleStreamParser
SolrStream. constructParser(SolrClient server, SolrParams requestParams)
static JSONTupleStream
JSONTupleStream. create(SolrClient server, SolrParams requestParams)
-
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 tlogDir)
static CoreStatus
CoreAdminRequest. getCoreStatus(String coreName, boolean getIndexInfo, SolrClient client)
static CoreStatus
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 clusterstatic 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 failRequestStatusState
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 failString
CollectionAdminRequest.AsyncCollectionAdminRequest. processAsync(String asyncId, SolrClient client)
Process this request asynchronously, using a specified request idString
CollectionAdminRequest.AsyncCollectionAdminRequest. processAsync(SolrClient client)
Process this request asynchronously, generating and returning a request idstatic 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 timeoutstatic void
CollectionAdminRequest. waitForAsyncRequest(String requestId, SolrClient client, long timeout)
-
Uses of SolrServerException in org.apache.solr.common.cloud
Methods in org.apache.solr.common.cloud that throw SolrServerException Modifier and Type Method Description String
SolrZkClient. listZnode(String path, Boolean recurse)
static String
ZkMaintenanceUtils. listZnode(SolrZkClient zkClient, String path, Boolean recurse)
Lists a ZNode child and (optionally) the znodes of all the children.void
SolrZkClient. moveZnode(String src, String dst)
static void
ZkMaintenanceUtils. moveZnode(SolrZkClient zkClient, String src, String dst)
void
SolrZkClient. zkTransfer(String src, Boolean srcIsZk, String dst, Boolean dstIsZk, Boolean recurse)
static void
ZkMaintenanceUtils. zkTransfer(SolrZkClient zkClient, String src, Boolean srcIsZk, String dst, Boolean dstIsZk, Boolean recurse)
Copy between local file system and Zookeeper, or from one Zookeeper node to another, optionally copying recursively.
-