Package org.mycore.solr
Class MCRSolrClientFactory
java.lang.Object
org.mycore.solr.MCRSolrClientFactory
- Author:
- shermann, Thomas Scheffler (yagee), Matthias Eichner, Jens Kupferschmidt
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(String coreID, MCRSolrCore core) Add a SOLR core instance to the liststatic MCRSolrCore
static Optional<MCRSolrCore>
static Map<String,
MCRSolrCore> static org.apache.solr.client.solrj.SolrClient
Returns the concurrent solr client of the default core.static org.apache.solr.client.solrj.SolrClient
Returns the solr client of the default core.static MCRSolrCore
static Optional<MCRSolrCore>
Remove a SOLR core instance from the list
-
Method Details
-
addCore
-
add
Add a SOLR core instance to the list- Parameters:
core
- the MCRSolrCore instance
-
remove
Remove a SOLR core instance from the list- Parameters:
coreID
- the name of the MCRSolrCore instance
-
get
- Parameters:
coreID
- the id of the core- Returns:
- a core with a specific id
-
getMainSolrCore
-
getMainSolrClient
public static org.apache.solr.client.solrj.SolrClient getMainSolrClient()Returns the solr client of the default core. -
getMainConcurrentSolrClient
public static org.apache.solr.client.solrj.SolrClient getMainConcurrentSolrClient()Returns the concurrent solr client of the default core. -
getCoreMap
- Returns:
- the read only core map wich contains the coreId and the core
-