public class DefaultSolrServerProvider extends Object implements SolrServerProvider
| Constructor and Description |
|---|
DefaultSolrServerProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.solr.client.solrj.SolrServer |
getIndexingSolrServer()
provides an already initialized
SolrServer specifically configured to be
used for indexing. |
org.apache.solr.client.solrj.SolrServer |
getSearchingSolrServer()
provides an already initialized
SolrServer specifically configured to be
used for searching. |
org.apache.solr.client.solrj.SolrServer |
getSolrServer()
provides an already initialized
SolrServer to be used for either searching or
indexing, or both. |
@CheckForNull public org.apache.solr.client.solrj.SolrServer getSolrServer() throws Exception
SolrServerProviderSolrServer to be used for either searching or
indexing, or both.getSolrServer in interface SolrServerProviderSolrServer instanceException - if anything goes wrong while initializing the SolrServer@CheckForNull public org.apache.solr.client.solrj.SolrServer getIndexingSolrServer() throws Exception
SolrServerProviderSolrServer specifically configured to be
used for indexing.getIndexingSolrServer in interface SolrServerProviderSolrServer instanceException - if anything goes wrong while initializing the SolrServer@CheckForNull public org.apache.solr.client.solrj.SolrServer getSearchingSolrServer() throws Exception
SolrServerProviderSolrServer specifically configured to be
used for searching.getSearchingSolrServer in interface SolrServerProviderSolrServer instanceException - if anything goes wrong while initializing the SolrServerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.