Interface SolrCoreInitializer

  • All Known Implementing Classes:
    AbstractSolrCoreInitializer

    @Role
    public interface SolrCoreInitializer
    An extension point used to inject mandatory Solr cores.
    Since:
    12.2
    Version:
    $Id: 45aca32e93bf47b869963f90a0bc32bf1fc18e2c $
    • Method Detail

      • getCoreName

        String getCoreName()
        Returns:
        the name of Solr core to initialize.
      • initialize

        void initialize​(org.apache.solr.client.solrj.SolrClient client)
                 throws SolrException
        Initialize the client after its creation.
        Parameters:
        client - to manipulate the core
        Throws:
        SolrException - when failing to initialize the core
      • isCache

        default boolean isCache()
        Indicate if the the core content is considered to be caching (it's possible to recreate it if the core is lost). In practice it's mostly used to decide where to store the core data to make clear what it is when looking at the permanent directory in case of embedded Solr.
        Returns:
        true if the content of the core is considered to be cache
        Since:
        12.10