j100002ben 10 發表於 May 22, 2012 檢舉 Share 發表於 May 22, 2012 自己寫得外掛,幫Wordpress加上全文檢索並且處理CJK字元全文檢索問題。主要是移植Mediawiki的處理Class過來(H)http://wordpress.org/extend/plugins/wp-cjk-fulltext-index/目前還有很多可以加上去的功能,不過需要些時間= ='This plugin port the full text index search functionality from mediawiki (ver 1.19.0) to wordpress.It improve the searching speed by using MATCH AGAINST than LIKE and also solve the full text index problem with cjk (Chinese, Japanese, and Korean) words.This plugin will create a new database table with post ID and text content. 鏈接文章 分享到其他網站
ckmarkhsu 7 發表於 May 26, 2012 檢舉 Share 發表於 May 26, 2012 庫耶,是在 PHP level 實作,還是 MySQL ?深藍現在還是用 table scan 的 like '%%' XD不過目前在努力把資料倒給 Google,現在完成 1/4 index 了,等完成後就直接把 Google Search 放進來吧:p 鏈接文章 分享到其他網站
j100002ben 10 發表於 May 27, 2012 作者 檢舉 Share 發表於 May 27, 2012 (已編輯) 是直接在PHP level做出來:p把中文全部轉成像是「u8e6a5b5 u8e58589 u8e7bfbc」的格式存進MySQL另外的一個資料表英文數字部份如果太短,像是2會補上u800變成2u800以避免MySQL預設最短搜尋單字是4個letters實際的想法是把每一個中文字都切開變成一個一個的英文單字然後在用「"XXX"」去當然連續英文單字搜尋效率就和標準的MySQL Fulltext Index一樣啦wwwPS:想法是從Mediawiki那邊弄來的,因為那個時候就想Wordpress沒有解決這個問題,那最大的Opensource中文資訊站就剩下維基了www 此內容已被編輯, May 27, 2012 ,由 j100002ben 鏈接文章 分享到其他網站
Recommended Posts
請登入後來留意見
在登入之後,您才能留意見
立即登入