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 API
|
org.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.
|
Modifier and Type | Method and Description |
---|---|
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
Many
SolrClient 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 committed
|
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.addBean(Object obj)
Adds a single bean
The bean is converted to a
SolrInputDocument by the client's
DocumentObjectBinder |
UpdateResponse |
SolrClient.addBean(Object obj,
int commitWithinMs)
Adds a single bean specifying max time before it becomes committed
The bean is converted to a
SolrInputDocument by the client's
DocumentObjectBinder |
UpdateResponse |
SolrClient.addBean(String collection,
Object obj)
Adds a single bean
The bean is converted to a
SolrInputDocument by the client's
DocumentObjectBinder |
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 a
SolrInputDocument by the client's
DocumentObjectBinder |
UpdateResponse |
SolrClient.addBeans(Collection<?> beans)
Adds a collection of beans
The beans are converted to
SolrInputDocument s by the client's
DocumentObjectBinder |
UpdateResponse |
SolrClient.addBeans(Collection<?> beans,
int commitWithinMs)
Adds a collection of beans specifying max time before they become committed
The beans are converted to
SolrInputDocument s by the client's
DocumentObjectBinder |
UpdateResponse |
SolrClient.addBeans(Iterator<?> beanIterator)
Adds the beans supplied by the given iterator.
|
UpdateResponse |
SolrClient.addBeans(String collection,
Collection<?> beans)
Adds a collection of beans
The beans are converted to
SolrInputDocument s by the client's
DocumentObjectBinder |
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 to
SolrInputDocument s by the client's
DocumentObjectBinder |
UpdateResponse |
SolrClient.addBeans(String collection,
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 access
|
UpdateResponse |
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 access
|
UpdateResponse |
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(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.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,
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(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.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
|
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.
|
SolrDocument |
SolrClient.getById(String id)
Retrieves the SolrDocument associated with the given identifier.
|
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.
|
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.
|
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
|
T |
SolrRequest.process(SolrClient client)
Send this request to a
SolrClient and return the response |
T |
SolrRequest.process(SolrClient client,
String collection)
Send this request to a
SolrClient and return the response |
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.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.queryAndStreamResponse(SolrParams params,
StreamingResponseCallback callback)
Query solr, and stream the results.
|
QueryResponse |
SolrClient.queryAndStreamResponse(String collection,
SolrParams params,
FastStreamingDocsCallback callback) |
QueryResponse |
SolrClient.queryAndStreamResponse(String collection,
SolrParams params,
StreamingResponseCallback callback)
Query solr, and stream the results.
|
NamedList<Object> |
SolrClient.request(SolrRequest request)
Execute a request against a Solr server
|
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.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.client.methods.HttpRequestBase |
HttpSolrClient.createMethod(SolrRequest request,
String collection) |
protected org.apache.http.client.methods.HttpRequestBase |
DelegationTokenHttpSolrClient.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) |
LBHttpSolrClient.Rsp |
LBHttpSolrClient.request(LBHttpSolrClient.Req req)
Deprecated.
use
LBSolrClient.request(LBSolrClient.Req) instead |
LBSolrClient.Rsp |
LBSolrClient.request(LBSolrClient.Req req)
Tries to query a live server from the list provided in Req.
|
NamedList<Object> |
HttpSolrClient.request(SolrRequest request,
ResponseParser processor) |
NamedList<Object> |
HttpSolrClient.request(SolrRequest request,
ResponseParser processor,
String collection) |
NamedList<Object> |
LBSolrClient.request(SolrRequest request,
String collection)
Tries to query a live server.
|
NamedList<Object> |
HttpSolrClient.request(SolrRequest request,
String collection)
Process the request.
|
NamedList<Object> |
ConcurrentUpdateHttp2SolrClient.request(SolrRequest request,
String collection) |
NamedList<Object> |
ConcurrentUpdateSolrClient.request(SolrRequest request,
String collection) |
NamedList<Object> |
BaseCloudSolrClient.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> |
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) |
Modifier and Type | Method and Description |
---|---|
TupleStreamParser |
SolrStream.constructParser(SolrClient server,
SolrParams requestParams)
Deprecated.
|
static JSONTupleStream |
JSONTupleStream.create(SolrClient server,
SolrParams requestParams) |
Modifier and Type | Method and 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 cluster
|
static CoreAdminResponse |
CoreAdminRequest.mergeIndexes(String name,
String[] indexDirs,
String[] srcCores,
SolrClient client) |
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
|
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
|
String |
CollectionAdminRequest.AsyncCollectionAdminRequest.processAsync(SolrClient client)
Process this request asynchronously, generating and returning a request id
|
String |
CollectionAdminRequest.AsyncCollectionAdminRequest.processAsync(String asyncId,
SolrClient client)
Process this request asynchronously, using a specified 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) |
Modifier and Type | Method and Description |
---|---|
static String |
ZkMaintenanceUtils.listZnode(SolrZkClient zkClient,
String path,
Boolean recurse)
Lists a ZNode child and (optionally) the znodes of all the children.
|
String |
SolrZkClient.listZnode(String path,
Boolean recurse) |
static void |
ZkMaintenanceUtils.moveZnode(SolrZkClient zkClient,
String src,
String dst) |
void |
SolrZkClient.moveZnode(String src,
String dst) |
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.
|
void |
SolrZkClient.zkTransfer(String src,
Boolean srcIsZk,
String dst,
Boolean dstIsZk,
Boolean recurse) |
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.