mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 05:34:01 +02:00
[ticket/15537] Add core.search_(native|mysql|postgres|sphinx)_index_before
PHPBB3-15537
This commit is contained in:
@@ -1433,6 +1433,35 @@ class fulltext_native extends \phpbb\search\base
|
||||
$words['del']['post'] = array();
|
||||
$words['del']['title'] = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Event to modify method arguments and words before the native search index is updated
|
||||
*
|
||||
* @event core.search_native_index_before
|
||||
* @var string mode Contains the post mode: edit, post, reply, quote
|
||||
* @var int post_id The id of the post which is modified/created
|
||||
* @var string message New or updated post content
|
||||
* @var string subject New or updated post subject
|
||||
* @var int poster_id Post author's user id
|
||||
* @var int forum_id The id of the forum in which the post is located
|
||||
* @var array words Grouped lists of words added to or remove from the index
|
||||
* @var array split_text Array of words from the message
|
||||
* @var array split_title Array of words from the title
|
||||
* @since 3.2.3-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
'mode',
|
||||
'post_id',
|
||||
'message',
|
||||
'subject',
|
||||
'poster_id',
|
||||
'forum_id',
|
||||
'words',
|
||||
'split_text',
|
||||
'split_title',
|
||||
);
|
||||
extract($this->phpbb_dispatcher->trigger_event('core.search_native_index_before', compact($vars)));
|
||||
|
||||
unset($split_text);
|
||||
unset($split_title);
|
||||
|
||||
|
Reference in New Issue
Block a user