mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #5013 from rxu/ticket/15419
[ticket/15419] Fix Sphinx UTF8 search in delta index
This commit is contained in:
@@ -304,7 +304,7 @@ class fulltext_sphinx
|
||||
array('sql_attr_string', 'post_subject'),
|
||||
),
|
||||
'source source_phpbb_' . $this->id . '_delta : source_phpbb_' . $this->id . '_main' => array(
|
||||
array('sql_query_pre', ''),
|
||||
array('sql_query_pre', 'SET NAMES \'utf8\''),
|
||||
array('sql_query_range', ''),
|
||||
array('sql_range_step', ''),
|
||||
array('sql_query', 'SELECT
|
||||
@@ -324,6 +324,7 @@ class fulltext_sphinx
|
||||
WHERE
|
||||
p.topic_id = t.topic_id
|
||||
AND p.post_id >= ( SELECT max_doc_id FROM ' . SPHINX_TABLE . ' WHERE counter_id=1 )'),
|
||||
array('sql_query_post_index', ''),
|
||||
),
|
||||
'index index_phpbb_' . $this->id . '_main' => array(
|
||||
array('path', $this->config['fulltext_sphinx_data_path'] . 'index_phpbb_' . $this->id . '_main'),
|
||||
|
Reference in New Issue
Block a user