Package org.apache.solr.core
Interface SolrEventListener
- All Superinterfaces:
NamedListInitializedPlugin
- All Known Implementing Classes:
AbstractSolrEventListener,DelegatingEventListener,QuerySenderListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidnewSearcher(SolrIndexSearcher newSearcher, SolrIndexSearcher currentSearcher) The searchers passed here are only guaranteed to be valid for the duration of this method call, so care should be taken not to spawn threads or asynchronous tasks with references to these searchers.voidvoidMethods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
Method Details
-
postCommit
void postCommit() -
postSoftCommit
void postSoftCommit() -
newSearcher
The searchers passed here are only guaranteed to be valid for the duration of this method call, so care should be taken not to spawn threads or asynchronous tasks with references to these searchers.Implementations should add the
EventParams.EVENTparameter and set it to a value of either:EventParams.FIRST_SEARCHER- First Searcher eventEventParams.NEW_SEARCHER- New Searcher event
if (currentSearcher != null) { nlst.add(CommonParams.EVENT, CommonParams.NEW_SEARCHER); } else { nlst.add(CommonParams.EVENT, CommonParams.FIRST_SEARCHER); }- Parameters:
newSearcher- The newSolrIndexSearcherto usecurrentSearcher- The existingSolrIndexSearcher. null if this is a firstSearcher event.- See Also:
-