Full-Text Search


將 WordPress 核心程式內建的搜尋功能取代為全文檢索搜尋。

將網站內建的搜尋功能取代為支援繁體中文、簡體中文、日文及韓文的全文檢索搜尋 (MySQL + Ngram 剖析器或 Mroonga 引擎 + TokenMecab 剖析器),這會大幅改善搜尋效能。

搜尋時會排除 HTML 標籤僅搜尋文字內容,這可以防止 HTML 標籤納入搜尋範圍。

搜尋的資料 (索引) 會儲存於專屬的資料表中,因此不會重寫現有的資料表結構或文章資料 (posts 資料表)。

在 PDF、Word (DOC 及 DOCX)、Excel (XLSX) 及 PowerPoint (PPTX) 檔案中搜尋文字。目前不支援已保全的 PDF 檔案。

這個外掛支援 WordPress 多站網路。


  • OR (大寫):顯示包含任一搜尋字串的全部搜尋結果。範例:foo OR bar
  • -:在搜尋結果中排除包含減號後的文字結果。範例:foo -bar
  • "":顯示完全相符的搜尋結果。範例:”foo bar”
  • *:使用萬用字元搜尋,僅供網站啟用 Mroonga 後使用。範例:foo*
  • ():群組化搜尋,僅供網站啟用 Mroonga 後使用。範例:(foo OR bar) baz


需要 MySQL 5.6 或更新版本,或 Mroonga 引擎。

由於 InnoDB 引擎在處理大量資料時效能會明顯降低,因此強烈建議使用 Mroonga 引擎。


  • [設定] 分頁畫面
  • [相關資訊] 分頁畫面
  • [資料維護] 分頁畫面
  • 附件詳細資料頁面


  1. full-text-search 資料夾上傳至 /wp-content/plugins/ 目錄。
  2. 在 WordPress 管理後台的 [外掛] 選單中啟用外掛。


2022 年 11 月 25 日
When I asked a question about using it with the WP Download Manager plugin, there was a polite answer about how to customize it, and it worked as desired. That's excellent.
2022 年 2 月 23 日
I am a user from China, and I have used the search plug-in developed by you; my website has 2 million pieces of data, and the plug-in developed by you can really run efficiently. But there is one question that I would like to give feedback, and at the same time I would like to ask you if there is a better way to deal with this situation. When searching for a keyword with a number such as \\\\\\\\\\\\\\\"10个\\\\\\\\\\\\\\\", the plug-in does not return the result, but always displays the loading process, which may even cause the website to be abnormal. Hope to get your reply, thank you!
閱讀全部 2 則使用者評論


以下人員參與了開源軟體〈Full-Text Search〉的開發相關工作。


〈Full-Text Search〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Full-Text Search〉外掛本地化為台灣繁體中文版


任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄



  • Changed default setting values.
  • Added escaping to multiple translate texts for enhanced security.
  • Code refactoring.


  • Changed full-text search to exclude_from_search posts only.
  • Fixed a bug that the text of attachments were not extracted when regenerating indexes.


  • Added the ability to highlight search keywords on the search results page.
  • Optimized SQL.


  • Added a function to delete the search text of attachments.


  • Improved performance.
  • Changed to remove control characters such as spaces and line breaks from automatically extracted text in PDF.


  • Initial release.