mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[feature/sphinx-fulltext-search] minor changes in sphinx.conf
PHPBB3-10946
This commit is contained in:
parent
13c451ca2e
commit
118b57f71d
2 changed files with 3 additions and 3 deletions
|
@ -6,6 +6,8 @@ source source_phpbb_{SPHINX_ID}_main
|
||||||
sql_pass = password
|
sql_pass = password
|
||||||
sql_db = db_name
|
sql_db = db_name
|
||||||
sql_port = 3306 #optional, default is 3306
|
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_query_range = SELECT MIN(post_id), MAX(post_id) FROM phpbb_posts
|
||||||
sql_range_step = 5000
|
sql_range_step = 5000
|
||||||
sql_query = SELECT
\
|
sql_query = SELECT
\
|
||||||
|
@ -27,8 +29,6 @@ source source_phpbb_{SPHINX_ID}_main
|
||||||
sql_query_post =
|
sql_query_post =
|
||||||
sql_query_post_index = REPLACE INTO phpbb_sphinx ( counter_id, max_doc_id ) VALUES ( 1, $maxid )
|
sql_query_post_index = REPLACE INTO phpbb_sphinx ( counter_id, max_doc_id ) VALUES ( 1, $maxid )
|
||||||
sql_query_info = SELECT * FROM phpbb_posts WHERE post_id = $id
|
sql_query_info = SELECT * FROM phpbb_posts WHERE post_id = $id
|
||||||
sql_query_pre = SET NAMES utf8
|
|
||||||
sql_query_pre = REPLACE INTO phpbb_sphinx SELECT 1, MAX(post_id) FROM phpbb_posts
|
|
||||||
sql_attr_uint = forum_id
|
sql_attr_uint = forum_id
|
||||||
sql_attr_uint = topic_id
|
sql_attr_uint = topic_id
|
||||||
sql_attr_uint = poster_id
|
sql_attr_uint = poster_id
|
||||||
|
|
|
@ -150,7 +150,7 @@ class phpbb_search_fulltext_sphinx
|
||||||
array('sql_pass', $dbpasswd),
|
array('sql_pass', $dbpasswd),
|
||||||
array('sql_db', $dbname),
|
array('sql_db', $dbname),
|
||||||
array('sql_port', $dbport),
|
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_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_query_range', 'SELECT MIN(post_id), MAX(post_id) FROM ' . POSTS_TABLE . ''),
|
||||||
array('sql_range_step', '5000'),
|
array('sql_range_step', '5000'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue