Package org.mycore.solr
Class MCRSolrCore
java.lang.Object
org.mycore.solr.MCRSolrCore
Core instance of a solr server.
- Author:
- Matthias Eichner
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMCRSolrCore
(String serverURL) Deprecated.MCRSolrCore
(String serverURL, String name) Creates a new solr server core instance. -
Method Summary
-
Field Details
-
serverURL
-
name
-
solrClient
protected org.apache.solr.client.solrj.impl.HttpSolrClient solrClient -
concurrentClient
protected org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient concurrentClient
-
-
Constructor Details
-
MCRSolrCore
Deprecated.useMCRSolrCore(String, String)
insteadCreates a new solr server core instance. The last part of this url should be the core.- Parameters:
serverURL
- whole url e.g. http://localhost:8296/docportal
-
MCRSolrCore
Creates a new solr server core instance.- Parameters:
serverURL
- base url of the solr server e.g. http://localhost:8296name
- name of the core e.g. docportal
-
-
Method Details
-
setup
-
getV1CoreURL
-
shutdown
public void shutdown() -
getName
Returns the name of the core. -
getServerURL
-
getClient
public org.apache.solr.client.solrj.impl.HttpSolrClient getClient()Returns the default solr client instance. Use this for queries. -
getConcurrentClient
public org.apache.solr.client.solrj.SolrClient getConcurrentClient()Returns the concurrent solr client instance. Use this for indexing.
-
MCRSolrCore(String, String)
instead