public class RemoteSolrServerProvider extends Object implements SolrServerProvider
SolrServerProvider for remote Solr installations.| Constructor and Description |
|---|
RemoteSolrServerProvider(RemoteSolrServerConfiguration remoteSolrServerConfiguration) |
| 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. |
public RemoteSolrServerProvider(RemoteSolrServerConfiguration remoteSolrServerConfiguration)
@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–2017 The Apache Software Foundation. All rights reserved.