function reindex($mode, $post_id, $message, $subject, $poster_id, $forum_id)
	{
		global $config, $phpbb_root_path, $phpEx;
		// Select the search method and do some additional checks to ensure it can actually be utilised
		$search_type =  basename($config['search_type']);

		if (!file_exists($phpbb_root_path . 'phpbb/search/' . $search_type . '.' . $phpEx))
		{
			trigger_error('NO_SUCH_SEARCH_MODULE', E_USER_ERROR);
		}

		require_once("{$phpbb_root_path}phpbb/search/$search_type.$phpEx");
		$search_type = "\\phpbb\\search\\" . $search_type;

		$error = false;
		$search = new $search_type($error);

		if ($error)
		{
			trigger_error($error);
		}

		$search->index($mode, $post_id, $message, $subject, $poster_id, $forum_id);
	}
function reindex($mode, $post_id, $message, $subject, $poster_id, $forum_id)
	{
		global $config, $phpbb_root_path, $phpEx;
		// Select the search method and do some additional checks to ensure it can actually be utilised
		$search_type =  basename($config['search_type']);

		if (!file_exists($phpbb_root_path . 'phpbb/search/' . $search_type . '.' . $phpEx))
		{
			trigger_error('NO_SUCH_SEARCH_MODULE', E_USER_ERROR);
		}

		require_once("{$phpbb_root_path}phpbb/search/$search_type.$phpEx");
		$search_type = "\\phpbb\\search\\" . $search_type;

		$error = false;
		$search = new $search_type($error);

		if ($error)
		{
			trigger_error($error);
		}

		$search->index($mode, $post_id, $message, $subject, $poster_id, $forum_id);
	}
function reindex ( $ mode , $ post_id , $ message , $ subject , $ poster_id , $ forum_id ) { global $ config , $ phpbb_root_path , $ phpEx ; // Select the search method and do some additional checks to ensure it can actually be utilised $ search_type = basename ( $ config [ 'search_type' ] ) ; if ( ! file_exists ( $ phpbb_root_path . 'phpbb/search/' . $ search_type . '.' . $ phpEx ) ) { trigger_error ( 'NO_SUCH_SEARCH_MODULE' , E_USER_ERROR ) ; } require_once ( "{$phpbb_root_path}phpbb/search/$search_type.$phpEx" ) ; $ search_type = "\\phpbb\\search\\" . $ search_type ; $ error = false ; $ search = new $ search_type ( $ error ) ; if ( $ error ) { trigger_error ( $ error ) ; } $ search -> index ( $ mode , $ post_id , $ message , $ subject , $ poster_id , $ forum_id ) ; }
Reindex post in search

@param string $mode
@param int $post_id
@param string $message
@param string $subject
@param int $poster_id
@param int $forum_id
Reindex post in search