public class SolrPageMovePart1Observer extends AbstractLiveSolrObserver
Observer
for observing page move in order to synchronize
Solr index associated._context, _resolver, _solrIndexer, _solrPageIndexer
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
SolrPageMovePart1Observer() |
Modifier and Type | Method and Description |
---|---|
protected void |
_updateIndex(Event event,
Map<String,Object> transientVars)
Update the index from the event observed.
|
int |
getPriority(Event event)
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers. |
boolean |
supports(Event event)
Checks if the event is supported.
|
_deletePageDocumentsForContent, _getPageInLive, _updatePageDocument, _updatePageDocument, _updatePageDocumentsForContent, contextualize, observe, service
getLogger, setLogger
public SolrPageMovePart1Observer()
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.public int getPriority(Event event)
Observer
getPriority
in interface Observer
getPriority
in class AbstractLiveSolrObserver
event
- the event.protected void _updateIndex(Event event, Map<String,Object> transientVars) throws Exception
AbstractLiveSolrObserver
_updateIndex
in class AbstractLiveSolrObserver
event
- the event.transientVars
- the transient vars passed from one Observer to another when processing a single Event.Exception
- if an error occurs.