mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[feature/sphinx-fulltext-search] add pgsql functionality
PHPBB3-10946
This commit is contained in:
@@ -108,7 +108,7 @@ class phpbb_search_fulltext_sphinx
|
|||||||
*/
|
*/
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
if ($this->db->sql_layer != 'mysql' && $this->db->sql_layer != 'mysql4' && $this->db->sql_layer != 'mysqli')
|
if ($this->db->sql_layer != 'mysql' && $this->db->sql_layer != 'mysql4' && $this->db->sql_layer != 'mysqli' && $this->db->sql_layer != 'postgres')
|
||||||
{
|
{
|
||||||
return $this->user->lang['FULLTEXT_SPHINX_WRONG_DATABASE'];
|
return $this->user->lang['FULLTEXT_SPHINX_WRONG_DATABASE'];
|
||||||
}
|
}
|
||||||
|
@@ -80,7 +80,7 @@ $lang = array_merge($lang, array(
|
|||||||
'FULLTEXT_SPHINX_MAIN_POSTS' => 'Number of posts in main index',
|
'FULLTEXT_SPHINX_MAIN_POSTS' => 'Number of posts in main index',
|
||||||
'FULLTEXT_SPHINX_PORT' => 'Sphinx search deamon port',
|
'FULLTEXT_SPHINX_PORT' => 'Sphinx search deamon port',
|
||||||
'FULLTEXT_SPHINX_PORT_EXPLAIN' => 'Port on which the sphinx search deamon on localhost listens. Leave empty to use the default 3312',
|
'FULLTEXT_SPHINX_PORT_EXPLAIN' => 'Port on which the sphinx search deamon on localhost listens. Leave empty to use the default 3312',
|
||||||
'FULLTEXT_SPHINX_WRONG_DATABASE' => 'The sphinx plugin for phpBB currently only supports MySQL',
|
'FULLTEXT_SPHINX_WRONG_DATABASE' => 'The sphinx search for phpBB supports MySQL and PostgreSQL only.',
|
||||||
'FULLTEXT_SPHINX_STOPWORDS_FILE' => 'Stopwords activated',
|
'FULLTEXT_SPHINX_STOPWORDS_FILE' => 'Stopwords activated',
|
||||||
'FULLTEXT_SPHINX_STOPWORDS_FILE_EXPLAIN' => 'You can place a file called sphinx_stopwords.txt containing one word in each line in your config directory. If this file is present these words will be excluded from the indexing process.',
|
'FULLTEXT_SPHINX_STOPWORDS_FILE_EXPLAIN' => 'You can place a file called sphinx_stopwords.txt containing one word in each line in your config directory. If this file is present these words will be excluded from the indexing process.',
|
||||||
'FULLTEXT_SPHINX_CONFIG_FILE' => 'Sphinx config file',
|
'FULLTEXT_SPHINX_CONFIG_FILE' => 'Sphinx config file',
|
||||||
|
Reference in New Issue
Block a user