aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/fulltext_postgres.php
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-05-01 16:09:08 +0530
committerDhruv Goel <dhruv.goel92@gmail.com>2012-07-05 21:11:20 +0530
commit9f4219b1c7e74f86134b51fa637b513c5a670b5f (patch)
tree2294a976b94ba4b7b539a18261ab467e882d54bd /phpBB/includes/search/fulltext_postgres.php
parent98bc7fa6ce8dff493bdf0e09e1d09bc27eb31a6e (diff)
downloadforums-9f4219b1c7e74f86134b51fa637b513c5a670b5f.tar
forums-9f4219b1c7e74f86134b51fa637b513c5a670b5f.tar.gz
forums-9f4219b1c7e74f86134b51fa637b513c5a670b5f.tar.bz2
forums-9f4219b1c7e74f86134b51fa637b513c5a670b5f.tar.xz
forums-9f4219b1c7e74f86134b51fa637b513c5a670b5f.zip
[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
Diffstat (limited to 'phpBB/includes/search/fulltext_postgres.php')
-rw-r--r--phpBB/includes/search/fulltext_postgres.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php
index 18a5b402bf..6b95a4ff67 100644
--- a/phpBB/includes/search/fulltext_postgres.php
+++ b/phpBB/includes/search/fulltext_postgres.php
@@ -9,6 +9,7 @@
*/
/**
+* @ignore
*/
if (!defined('IN_PHPBB'))
{
@@ -16,16 +17,11 @@ if (!defined('IN_PHPBB'))
}
/**
-* @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();
@@ -76,6 +72,16 @@ class fulltext_postgres extends search_backend
}
/**
+ * 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
*/
function init()