Wordpress 外掛 Wp CJK Fulltext Index


Recommended Posts

自己寫得外掛,幫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.

鏈接文章
分享到其他網站

是直接在PHP level做出來:p

把中文全部轉成像是「u8e6a5b5 u8e58589 u8e7bfbc」的格式存進MySQL另外的一個資料表

英文數字部份如果太短,像是2會補上u800變成2u800

以避免MySQL預設最短搜尋單字是4個letters

實際的想法是把每一個中文字都切開變成一個一個的英文單字

然後在用「"XXX"」去當然連續英文單字搜尋

效率就和標準的MySQL Fulltext Index一樣啦www

PS:想法是從Mediawiki那邊弄來的,因為那個時候就想Wordpress沒有解決這個問題,

那最大的Opensource中文資訊站就剩下維基了www

此內容已被編輯, ,由 j100002ben
鏈接文章
分享到其他網站

請登入後來留意見

在登入之後,您才能留意見



立即登入