othree 寫:
恩恩\r
我想請問一下
他的 sql 語法的TABLE的名稱的對應在哪裡啊
像是這樣 [" . POSTS_TEXT_TABLE . "]
POSTS_TEXT_TABLE 是代表哪一個TABLE呢??
所以我找不到你所說的索引的 TABLE
不過確實感覺到有這東西(只找的到新 post 的文張)
我是 snitz 轉過來的
所以搜尋全滅
看來這個搞定還要去研究 post 了
不然這樣我可無法承受啊...
那些變數都在 includes/constant.php裡定義了
[php]<?php
// Table names
define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
define('BANLIST_TABLE', $table_prefix.'banlist');
define('CATEGORIES_TABLE', $table_prefix.'categories');
define('CONFIG_TABLE', $table_prefix.'config');
define('DISALLOW_TABLE', $table_prefix.'disallow');
define('FORUMS_TABLE', $table_prefix.'forums');
define('GROUPS_TABLE', $table_prefix.'groups');
define('POSTS_TABLE', $table_prefix.'posts');
define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
define('PRIVMSGS_TABLE', $table_prefix.'privmsgs');
define('PRIVMSGS_TEXT_TABLE', $table_prefix.'privmsgs_text');
define('PRIVMSGS_IGNORE_TABLE', $table_prefix.'privmsgs_ignore');
define('PRUNE_TABLE', $table_prefix.'forum_prune');
define('RANKS_TABLE', $table_prefix.'ranks');
define('SEARCH_TABLE', $table_prefix.'search_results');
define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
define('SESSIONS_TABLE', $table_prefix.'sessions');
define('SMILIES_TABLE', $table_prefix.'smilies');
define('THEMES_TABLE', $table_prefix.'themes');
define('THEMES_NAME_TABLE', $table_prefix.'themes_name');
define('TOPICS_TABLE', $table_prefix.'topics');
define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch');
define('USER_GROUP_TABLE', $table_prefix.'user_group');
define('USERS_TABLE', $table_prefix.'users');
define('WORDS_TABLE', $table_prefix.'words');
define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
?>[/php]
他那個檔真的太長了.. 看的頭會昏, 不過你抓到重點了, 我當時可能是誤判\r
他所有INSERT的東作都是塞垃圾.. 所以把那些INSERT SEARCH... 的全刪\r
了^^".. 後來我又想過一次, 如果把所有 "," "." " "當作斷句的關鍵(可能再加一
些甚麼"的", "是")來切, 照著他們原本的邏輯, 中文應該也可以硬塞進去.. 不過
這又有另一個問題, 就是DB會爆增.. 真的是兩難@@".. 而且還要回過頭來處理
之前沒有index的文章...