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,
com.codahale.metrics.MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
boolean |
collectionExists(String collection) |
String |
getBaseUri() |
abstract String |
getBaseUri(boolean lb) |
abstract com.lucidworks.apollo.solr.client.CoreAdminAPI |
getCoreAdminAPI() |
abstract com.lucidworks.apollo.solr.client.InfoAPI |
getInfoAPI() |
Client |
getJerseyClient() |
abstract com.lucidworks.apollo.solr.client.MBeanAPI |
getMBeanAPI() |
abstract com.lucidworks.apollo.solr.client.PingAPI |
getPingAPI() |
abstract com.lucidworks.apollo.solr.client.SchemaAPI |
getSchemaAPI() |
abstract com.lucidworks.apollo.solr.client.SearchAPI |
getSearchAPI() |
com.lucidworks.apollo.solr.client.InfoAPI.Version |
getServerVersion() |
abstract boolean |
isCloud() |
boolean |
isServerVersionAtLeast(int major,
int minor,
int trivial) |
abstract Collection<String> |
listCollections() |
public SolrClient(Client client, com.codahale.metrics.MetricRegistry metricRegistry)
public abstract com.lucidworks.apollo.solr.client.SearchAPI getSearchAPI()
public abstract com.lucidworks.apollo.solr.client.SchemaAPI getSchemaAPI()
public abstract com.lucidworks.apollo.solr.client.InfoAPI getInfoAPI()
public abstract com.lucidworks.apollo.solr.client.MBeanAPI getMBeanAPI()
public abstract com.lucidworks.apollo.solr.client.CoreAdminAPI getCoreAdminAPI()
public abstract String getBaseUri(boolean lb)
public abstract com.lucidworks.apollo.solr.client.PingAPI getPingAPI()
public abstract Collection<String> listCollections() throws Exception
Exception
public boolean collectionExists(String collection) throws Exception
Exception
public String getBaseUri()
public com.lucidworks.apollo.solr.client.InfoAPI.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()