public abstract class SolrClient extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
SolrClient.InvalidVersionException |
static class |
SolrClient.SolrVersionCheckError |
Constructor and Description |
---|
SolrClient(Client client,
MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
boolean |
collectionExists(String collection) |
String |
getBaseUri() |
abstract String |
getBaseUri(boolean lb) |
abstract CoreAdminAPI |
getCoreAdminAPI() |
abstract InfoAPI |
getInfoAPI() |
Client |
getJerseyClient() |
abstract MBeanAPI |
getMBeanAPI() |
abstract PingAPI |
getPingAPI() |
abstract SchemaAPI |
getSchemaAPI() |
abstract SearchAPI |
getSearchAPI() |
Version |
getServerVersion() |
abstract boolean |
isCloud() |
boolean |
isServerVersionAtLeast(int major,
int minor,
int trivial) |
abstract Collection<String> |
listCollections() |
public SolrClient(Client client, MetricRegistry metricRegistry)
public abstract SearchAPI getSearchAPI()
public abstract SchemaAPI getSchemaAPI()
public abstract InfoAPI getInfoAPI()
public abstract MBeanAPI getMBeanAPI()
public abstract CoreAdminAPI getCoreAdminAPI()
public abstract String getBaseUri(boolean lb)
public abstract PingAPI getPingAPI()
public abstract Collection<String> listCollections() throws Exception
Exception
public boolean collectionExists(String collection) throws Exception
Exception
public String getBaseUri()
public Version getServerVersion() throws SolrClient.SolrVersionCheckError
SolrClient.SolrVersionCheckError
public Client getJerseyClient()
public boolean isServerVersionAtLeast(int major, int minor, int trivial) throws SolrClient.SolrVersionCheckError, SolrClient.InvalidVersionException
public abstract boolean isCloud()