Class SolrCoreLoadListener

  • All Implemented Interfaces:
    org.apache.solr.core.SolrEventListener, org.apache.solr.util.plugin.NamedListInitializedPlugin

    public class SolrCoreLoadListener
    extends org.apache.solr.core.AbstractSolrEventListener
    Listeners for *FIRST SEARCHER* events in order to prepare and register the SolrContentStore and the Tracking Subsystem.
    Author:
    Gethin James, Andrea Gazzarini
    • Constructor Summary

      Constructors 
      Constructor Description
      SolrCoreLoadListener​(org.apache.solr.core.SolrCore core)
      Builds a new listener instance with the given SolrCore (event source).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void newSearcher​(org.apache.solr.search.SolrIndexSearcher newSearcher, org.apache.solr.search.SolrIndexSearcher currentSearcher)  
      • Methods inherited from class org.apache.solr.core.AbstractSolrEventListener

        addEventParms, getArgs, getCore, init, postCommit, postSoftCommit, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SolrCoreLoadListener

        public SolrCoreLoadListener​(org.apache.solr.core.SolrCore core)
        Builds a new listener instance with the given SolrCore (event source).
        Parameters:
        core - the SolrCore instance representing the event source of this listener.
    • Method Detail

      • newSearcher

        public void newSearcher​(org.apache.solr.search.SolrIndexSearcher newSearcher,
                                org.apache.solr.search.SolrIndexSearcher currentSearcher)
        Specified by:
        newSearcher in interface org.apache.solr.core.SolrEventListener
        Overrides:
        newSearcher in class org.apache.solr.core.AbstractSolrEventListener