silverstripe-fulltextsearch/code/search/processors/SearchUpdateMessageQueueProcessor.php
2015-11-21 19:19:20 +13:00

20 lines
470 B
PHP

<?php
class SearchUpdateMessageQueueProcessor extends SearchUpdateProcessor
{
/**
* The MessageQueue to use when processing updates
* @config
* @var string
*/
private static $reindex_queue = "search_indexing";
public function triggerProcessing()
{
MessageQueue::send(
Config::inst()->get('SearchMessageQueueUpdater', 'reindex_queue'),
new MethodInvocationMessage($this, "process")
);
}
}