class SolariumSubscriber implements EventSubscriberInterface (View source)

Subscribe to Node and NodesSources event to update a Solr server documents.

Properties

protected $solr
protected $logger

Methods

__construct(Client $solr, EventDispatcher $dispatcher, LoggerInterface $logger)

SolariumSubscriber constructor.

static 
getSubscribedEvents()

No description

onSolariumSingleUpdate(FilterNodesSourcesEvent $event)

Update or create solr document for current Node-source.

onSolariumSingleDelete(FilterNodesSourcesEvent $event)

Delete solr document for current Node-source.

onSolariumNodeDelete(FilterNodeEvent $event)

Delete solr documents for each Node sources.

onSolariumNodeUpdate(FilterNodeEvent $event)

Update or create solr documents for each Node sources.

onSolariumDocumentDelete(FilterDocumentEvent $event)

Delete solr documents for each Document translation.

onSolariumDocumentUpdate(FilterDocumentEvent $event)

Update or create solr documents for each Document translation.

onSolariumTagUpdate(FilterTagEvent $event)

Update solr documents linked to current event Tag.

onSolariumFolderUpdate(FilterFolderEvent $event)

Update solr documents linked to current event Folder.

Details

__construct(Client $solr, EventDispatcher $dispatcher, LoggerInterface $logger)

SolariumSubscriber constructor.

Parameters

Client $solr
EventDispatcher $dispatcher
LoggerInterface $logger

static getSubscribedEvents()

onSolariumSingleUpdate(FilterNodesSourcesEvent $event)

Update or create solr document for current Node-source.

Parameters

FilterNodesSourcesEvent $event

onSolariumSingleDelete(FilterNodesSourcesEvent $event)

Delete solr document for current Node-source.

Parameters

FilterNodesSourcesEvent $event

onSolariumNodeDelete(FilterNodeEvent $event)

Delete solr documents for each Node sources.

Parameters

FilterNodeEvent $event

onSolariumNodeUpdate(FilterNodeEvent $event)

Update or create solr documents for each Node sources.

Parameters

FilterNodeEvent $event

onSolariumDocumentDelete(FilterDocumentEvent $event)

Delete solr documents for each Document translation.

Parameters

FilterDocumentEvent $event

onSolariumDocumentUpdate(FilterDocumentEvent $event)

Update or create solr documents for each Document translation.

Parameters

FilterDocumentEvent $event

onSolariumTagUpdate(FilterTagEvent $event)

Update solr documents linked to current event Tag.

Parameters

FilterTagEvent $event

onSolariumFolderUpdate(FilterFolderEvent $event)

Update solr documents linked to current event Folder.

Parameters

FilterFolderEvent $event