1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 16:27:38 +02:00

[feature/sphinx-fulltext-search] use new unique id instead of salt

a new unique id is generated by sphinx and stored in the config table
instead of using avatar_salt.

PHPBB3-10946
This commit is contained in:
Dhruv
2012-07-11 16:57:18 +05:30
parent 4b40f0d3c6
commit 172c583f19
2 changed files with 16 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
source source_phpbb_{AVATAR_SALT}_main
source source_phpbb_{SPHINX_ID}_main
{
type = mysql
sql_host = localhost
@@ -38,7 +38,7 @@ source source_phpbb_{AVATAR_SALT}_main
\
p.topic_id = t.topic_id
\
AND p.post_id >= $start AND p.post_id <= $end
AND p.post_id >= $start AND p.post_id <= $end
sql_query_post =
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
@@ -60,10 +60,10 @@ source source_phpbb_{AVATAR_SALT}_delta : source_phpbb_{AVATAR_SALT}_main
sql_query = SELECT
\
p.post_id AS id,
\
\
p.forum_id,
\
p.topic_id,
\
p.topic_id,
\
p.poster_id,
\
@@ -73,10 +73,10 @@ index index_phpbb_{AVATAR_SALT}_main
\
p.post_subject,
\
p.post_subject as title,
p.post_subject as title,
\
p.post_text as data,
\
p.post_text as data,
\
t.topic_last_post_time,
\
0 as deleted