2013-07-25 14:27:09 +12:00
|
|
|
<?php
|
2017-02-17 12:03:51 +13:00
|
|
|
namespace SilverStripe\FullTextSearch\Search\Processors;
|
2015-11-21 19:19:20 +13:00
|
|
|
class SearchUpdateMessageQueueProcessor extends SearchUpdateProcessor
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The MessageQueue to use when processing updates
|
|
|
|
* @config
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
private static $reindex_queue = "search_indexing";
|
2013-07-25 14:27:09 +12:00
|
|
|
|
2015-11-21 19:19:20 +13:00
|
|
|
public function triggerProcessing()
|
|
|
|
{
|
|
|
|
MessageQueue::send(
|
|
|
|
Config::inst()->get('SearchMessageQueueUpdater', 'reindex_queue'),
|
|
|
|
new MethodInvocationMessage($this, "process")
|
|
|
|
);
|
|
|
|
}
|
2013-07-25 14:27:09 +12:00
|
|
|
}
|