1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 00:07:44 +02:00

[feature/postgresql-fulltext-search] minor changes

Some changes in code to get it work against current develop.
PosgreSQL Fulltext search works for new install now.

PHPBB3-9730
This commit is contained in:
Dhruv Goel
2012-05-01 16:09:08 +05:30
parent 98bc7fa6ce
commit 9f4219b1c7
3 changed files with 15 additions and 9 deletions

View File

@@ -9,23 +9,19 @@
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @ignore
*/
include_once($phpbb_root_path . 'includes/search/search.' . $phpEx);
/**
* fulltext_postgres
* Fulltext search for PostgreSQL
* @package search
*/
class fulltext_postgres extends search_backend
class phpbb_search_fulltext_postgres extends phpbb_search_base
{
var $stats = array();
var $word_length = array();
@@ -75,6 +71,16 @@ class fulltext_postgres extends search_backend
$error = false;
}
/**
* Returns the name of this search backend to be displayed to administrators
*
* @return string Name
*/
function get_name()
{
return 'PostgreSQL Fulltext';
}
/**
* Checks for correct PostgreSQL version and stores min/max word length in the config
*/