



PostgreSQL 8.2 has full text search in the tsearch2 module.
PostgreSQL 8.3 integrates tsearch2 into the core: "TSearch2, our cutting-edge full text search tool, has been fully integrated into the core code, and also has a cleaner API." [15]

--- a/fulltext_postgres.php 2011-06-03 02:56:49.886233637 +0400
+++ b/fulltext_postgres.php 2011-06-03 02:57:51.657165419 +0400
@@ -60,7 +60,7 @@
if ($db->sql_layer == 'postgres')
{
$pgsql_version = explode('.', substr($db->sql_server_info(), 10));
- if ($pgsql_version[0] >= 8 && $pgsql_version[1] >= 3)
+ if ($pgsql_version[0] > 8 || ($pgsql_version[0] == 8 && $pgsql_version[1] >= 3))
{
$this->tsearch_builtin = true;
}regname when providing to_tsvector() and to_tsquery() function with FTS configuration name as in:
$tmp_sql_match[] = "to_tsvector ('" . $db->sql_escape($config['fulltext_postgres_ts_name']) . "'::regname, " . $sql_match_column . ") @@ to_tsquery ('" . $db->sql_escape($config['fulltext_postgres_ts_name']) . "'::regname, '" . $db->sql_escape($this->tsearch_query) . "')";

Return to [3.0/Olympus] New features discussion
Users browsing this forum: No registered users and 8 guests