mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
20 lines
470 B
PHP
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")
|
|
);
|
|
}
|
|
}
|