Class MCRSolrCore

java.lang.Object
org.mycore.solr.MCRSolrCore

public class MCRSolrCore extends Object
Core instance of a solr server.
Author:
Matthias Eichner
  • Field Details

    • serverURL

      protected String serverURL
    • name

      protected String 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 public MCRSolrCore(String serverURL)
      Deprecated.
      Creates 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

      public MCRSolrCore(String serverURL, String name)
      Creates a new solr server core instance.
      Parameters:
      serverURL - base url of the solr server e.g. http://localhost:8296
      name - name of the core e.g. docportal
  • Method Details

    • setup

      protected void setup(String serverURL, String name)
    • getV1CoreURL

      public String getV1CoreURL()
    • shutdown

      public void shutdown()
    • getName

      public String getName()
      Returns the name of the core.
    • getServerURL

      public String 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.