Package | Description |
---|---|
org.apache.solr |
Commonly reused classes and interfaces (deprecated package, do not add new classes)
|
org.apache.solr.client.solrj |
Primary APIs for communicating with a Solr Server from a Java client.
|
org.apache.solr.client.solrj.embedded |
SolrJ client implementations for embedded solr access.
|
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.client.solrj.request.schema |
Convenience classes for making Schema API requests.
|
org.apache.solr.client.solrj.response |
Convenience classes for dealing with various types of Solr responses.
|
org.apache.solr.cloud |
Classes for dealing with ZooKeeper when operating in SolrCloud mode.
|
org.apache.solr.update |
APIs and classes for managing index updates
|
org.apache.solr.util |
Common utility classes used throughout Solr
|
Modifier and Type | Field and Description |
---|---|
static SolrClient |
SolrJettyTestBase.client |
protected SolrClient |
BaseDistributedSearchTestCase.controlClient |
Modifier and Type | Field and Description |
---|---|
protected List<SolrClient> |
BaseDistributedSearchTestCase.clients |
Modifier and Type | Method and Description |
---|---|
SolrClient |
SolrTestCaseHS.ClientProvider.client(SolrInputDocument sdoc,
SolrParams params) |
SolrClient |
SolrJettyTestBase.createNewSolrClient()
Create a new solr client.
|
protected SolrClient |
BaseDistributedSearchTestCase.createNewSolrClient(int port) |
SolrClient |
SolrJettyTestBase.getSolrClient() |
SolrClient |
SolrTestCaseHS.SolrInstance.getSolrJ() |
Modifier and Type | Method and Description |
---|---|
List<SolrClient> |
SolrTestCaseHS.ClientProvider.all() |
List<SolrClient> |
SolrTestCaseHS.SolrInstances.getSolrJs() |
Modifier and Type | Method and Description |
---|---|
static Long |
SolrTestCaseHS.add(SolrClient client,
SolrInputDocument sdoc,
ModifiableSolrParams params)
Adds a document using the specific client, or to the local test core if null.
|
protected UpdateResponse |
BaseDistributedSearchTestCase.add(SolrClient client,
SolrParams params,
SolrInputDocument... sdocs) |
static void |
SolrTestCaseHS.assertJQ(SolrClient client,
SolrParams args,
String... tests)
Pass "null" for the client to query the local server
|
void |
SolrTestCaseHS.Client.Tester.assertJQ(SolrClient client,
SolrParams args,
String... tests) |
protected UpdateResponse |
BaseDistributedSearchTestCase.del(SolrClient client,
SolrParams params,
Object... ids) |
protected UpdateResponse |
BaseDistributedSearchTestCase.delQ(SolrClient client,
SolrParams params,
String... queries) |
static String |
SolrTestCaseHS.getJSON(SolrClient client,
SolrParams params) |
static String |
SolrTestCaseHS.getQueryResponse(SolrClient client,
String wt,
SolrParams params) |
protected UpdateResponse |
BaseDistributedSearchTestCase.indexDoc(SolrClient client,
SolrParams params,
SolrInputDocument... sdocs)
Indexes the document in both the control client and the specified client asserting
that the respones are equivilent
|
QueryResponse |
BaseDistributedSearchTestCase.queryAndCompare(SolrParams params,
SolrClient... clients) |
Modifier and Type | Method and Description |
---|---|
QueryResponse |
BaseDistributedSearchTestCase.queryAndCompare(SolrParams params,
Iterable<SolrClient> clients) |
Constructor and Description |
---|
Client(List<SolrClient> clients,
int seed) |
ClientProvider(List<SolrClient> clients,
int seed) |
Modifier and Type | Class and Description |
---|---|
class |
SolrServer
Deprecated.
Use
SolrClient |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
SolrRequest.createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
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 |
Modifier and Type | Class and Description |
---|---|
class |
EmbeddedSolrServer
SolrClient that connects directly to a CoreContainer.
|
Modifier and Type | Class and Description |
---|---|
class |
CloudSolrClient
SolrJ client class to communicate with SolrCloud.
|
class |
CloudSolrServer
Deprecated.
Use
CloudSolrClient |
class |
ConcurrentUpdateSolrClient
ConcurrentUpdateSolrClient buffers all added documents and writes
them into open HTTP connections.
|
class |
ConcurrentUpdateSolrServer
Deprecated.
|
class |
HttpSolrClient
A SolrClient implementation that talks directly to a Solr server via HTTP
There are two ways to use an HttpSolrClient:
1) Pass a URL to the constructor that points directly at a particular core
SolrClient client = new HttpSolrClient("http://my-solr-server:8983/solr/core1");
QueryResponse resp = client.query(new SolrQuery("*:*"));
In this case, you can query the given core directly, but you cannot query any other
cores or issue CoreAdmin requests with this client.
2) Pass the base URL of the node to the constructor
SolrClient client = new HttpSolrClient("http://my-solr-server:8983/solr");
QueryResponse resp = client.query("core1", new SolrQuery("*:*"));
In this case, you must pass the name of the required core for all queries and updates,
but you may use the same client for all cores, and for CoreAdmin requests.
|
class |
HttpSolrServer
Deprecated.
Use
HttpSolrClient |
class |
LBHttpSolrClient
LBHttpSolrClient or "LoadBalanced HttpSolrClient" is a load balancing wrapper around
HttpSolrClient . |
class |
LBHttpSolrServer
Deprecated.
Use
LBHttpSolrClient |
Modifier and Type | Method and Description |
---|---|
static JSONTupleStream |
JSONTupleStream.create(SolrClient server,
SolrParams requestParams) |
Modifier and Type | Method and Description |
---|---|
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) |
protected CoreAdminResponse |
CoreAdminRequest.createResponse(SolrClient client) |
protected CollectionAdminResponse |
CollectionAdminRequest.createResponse(SolrClient client) |
protected SimpleSolrResponse |
GenericSolrRequest.createResponse(SolrClient client) |
protected LukeResponse |
LukeRequest.createResponse(SolrClient client) |
protected FieldAnalysisResponse |
FieldAnalysisRequest.createResponse(SolrClient client) |
protected QueryResponse |
QueryRequest.createResponse(SolrClient client) |
protected SolrPingResponse |
SolrPing.createResponse(SolrClient client) |
protected DocumentAnalysisResponse |
DocumentAnalysisRequest.createResponse(SolrClient client) |
protected UpdateResponse |
AbstractUpdateRequest.createResponse(SolrClient client) |
protected UpdateResponse |
DirectXmlRequest.createResponse(SolrClient client) |
static CoreAdminResponse |
CoreAdminRequest.getStatus(String name,
SolrClient client) |
static CoreAdminResponse |
CoreAdminRequest.mergeIndexes(String name,
String[] indexDirs,
String[] srcCores,
SolrClient client) |
static CoreAdminResponse |
CoreAdminRequest.reloadCore(String name,
SolrClient client) |
static CoreAdminResponse |
CoreAdminRequest.renameCore(String coreName,
String newName,
SolrClient client) |
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) |
Constructor and Description |
---|
QueryResponse(NamedList<Object> res,
SolrClient solrClient)
Utility constructor to set the solrServer and namedList
|
QueryResponse(SolrClient solrClient) |
Modifier and Type | Method and Description |
---|---|
protected SolrClient |
AbstractFullDistribZkTestBase.createNewSolrClient(int port) |
protected SolrClient |
AbstractFullDistribZkTestBase.createNewSolrClient(String collection,
String baseUrl) |
protected SolrClient |
AbstractFullDistribZkTestBase.getClient(String nodeName) |
SolrClient |
ChaosMonkey.getRandomClient(String slice) |
Modifier and Type | Method and Description |
---|---|
static boolean |
CloudInspectUtil.compareResults(SolrClient controlClient,
SolrClient cloudClient)
Compares the results of the control and cloud clients.
|
static boolean |
CloudInspectUtil.compareResults(SolrClient controlClient,
SolrClient cloudClient,
Set<String> addFails,
Set<String> deleteFails)
Compares the results of the control and cloud clients.
|
protected CollectionAdminResponse |
AbstractFullDistribZkTestBase.createCollection(Map<String,List<Integer>> collectionInfos,
String collectionName,
int numShards,
int replicationFactor,
int maxShardsPerNode,
SolrClient client,
String createNodeSetStr) |
protected CollectionAdminResponse |
AbstractFullDistribZkTestBase.createCollection(Map<String,List<Integer>> collectionInfos,
String collectionName,
int numShards,
int replicationFactor,
int maxShardsPerNode,
SolrClient client,
String createNodeSetStr,
String configName) |
protected CollectionAdminResponse |
AbstractFullDistribZkTestBase.createCollection(Map<String,List<Integer>> collectionInfos,
String collectionName,
Map<String,Object> collectionProps,
SolrClient client) |
protected CollectionAdminResponse |
AbstractFullDistribZkTestBase.createCollection(Map<String,List<Integer>> collectionInfos,
String collectionName,
Map<String,Object> collectionProps,
SolrClient client,
String confSetName) |
protected void |
AbstractFullDistribZkTestBase.index_specific(SolrClient client,
Object... fields) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractFullDistribZkTestBase.updateMappingsFromZk(List<JettySolrRunner> jettys,
List<SolrClient> clients) |
protected void |
AbstractFullDistribZkTestBase.updateMappingsFromZk(List<JettySolrRunner> jettys,
List<SolrClient> clients,
boolean allowOverSharding) |
Constructor and Description |
---|
StoppableIndexingThread(SolrClient controlClient,
SolrClient cloudClient,
String id,
boolean doDeletes) |
StoppableIndexingThread(SolrClient controlClient,
SolrClient cloudClient,
String id,
boolean doDeletes,
int numCycles,
int batchSize,
boolean pauseBetweenUpdates) |
Modifier and Type | Method and Description |
---|---|
SolrClient |
StreamingSolrClients.getSolrClient(SolrCmdDistributor.Req req) |
Modifier and Type | Method and Description |
---|---|
static NamedList<Object> |
SolrCLI.postJsonToSolr(SolrClient solrClient,
String updatePath,
String jsonBody) |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.