Class AbstractSolrEventListener

    • Constructor Detail

      • AbstractSolrEventListener

        public AbstractSolrEventListener​(SolrCore core)
    • Method Detail

      • getArgs

        public org.apache.solr.common.util.NamedList<?> getArgs()
      • init

        public void init​(org.apache.solr.common.util.NamedList<?> args)
        Description copied from interface: NamedListInitializedPlugin
        init will be called just once, immediately after creation.

        Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself

        Specified by:
        init in interface NamedListInitializedPlugin
        Parameters:
        args - non-null list of initialization parameters (may be empty)
      • addEventParms

        protected org.apache.solr.common.util.NamedList<Object> addEventParms​(SolrIndexSearcher currentSearcher,
                                                                              org.apache.solr.common.util.NamedList<Object> nlst)
        Add the EventParams.EVENT with either the EventParams.NEW_SEARCHER or EventParams.FIRST_SEARCHER values depending on the value of currentSearcher.

        Makes a copy of NamedList and then adds the parameters.

        Parameters:
        currentSearcher - If null, add FIRST_SEARCHER, otherwise NEW_SEARCHER
        nlst - The named list to add the EVENT value to