mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[feature/sphinx-fulltext-search] minor changes in sphinx.conf
PHPBB3-10946
This commit is contained in:
@@ -6,6 +6,8 @@ source source_phpbb_{SPHINX_ID}_main
|
||||
sql_pass = password
|
||||
sql_db = db_name
|
||||
sql_port = 3306 #optional, default is 3306
|
||||
sql_query_pre = SET NAMES 'utf8'
|
||||
sql_query_pre = REPLACE INTO phpbb_sphinx SELECT 1, MAX(post_id) FROM phpbb_posts
|
||||
sql_query_range = SELECT MIN(post_id), MAX(post_id) FROM phpbb_posts
|
||||
sql_range_step = 5000
|
||||
sql_query = SELECT
|
||||
@@ -27,8 +29,6 @@ source source_phpbb_{SPHINX_ID}_main
|
||||
p.post_subject as title,
|
||||
\
|
||||
p.post_text as data,
|
||||
\
|
||||
t.topic_last_post_time,
|
||||
\
|
||||
t.topic_last_post_time,
|
||||
\
|
||||
|
@@ -150,7 +150,7 @@ class phpbb_search_fulltext_sphinx
|
||||
array('sql_pass', $dbpasswd),
|
||||
array('sql_db', $dbname),
|
||||
array('sql_port', $dbport),
|
||||
array('sql_query_pre', 'SET NAMES utf8'),
|
||||
array('sql_query_pre', 'SET NAMES \'utf8\''),
|
||||
array('sql_query_pre', 'REPLACE INTO ' . SPHINX_TABLE . ' SELECT 1, MAX(post_id) FROM ' . POSTS_TABLE . ''),
|
||||
array('sql_query_range', 'SELECT MIN(post_id), MAX(post_id) FROM ' . POSTS_TABLE . ''),
|
||||
array('sql_range_step', '5000'),
|
||||
|
Reference in New Issue
Block a user