public class NodeStateSolrServerProvider extends Object implements SolrServerProvider
SolrServerProvider using configuration stored in a repository
node named "server" as a child of a oak:queryIndexDefinition node (e.g. under /../a/b/solrIndex/server)
having type = solr| Constructor and Description |
|---|
NodeStateSolrServerProvider(org.apache.jackrabbit.oak.spi.state.NodeState nodeState) |
| 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. |
String |
toString() |
public NodeStateSolrServerProvider(org.apache.jackrabbit.oak.spi.state.NodeState nodeState)
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 SolrServerpublic 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 SolrServerpublic 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-2016 The Apache Software Foundation. All Rights Reserved.