外掛說明
將 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 引擎。
螢幕擷圖
安裝方式
- 將
full-text-search
資料夾上傳至/wp-content/plugins/
目錄。 - 在 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.14.6
- Updated PDF Parser library to 2.11.0.
2.14.5
- Updated PDF Parser library to 2.10.0.
2.14.4
- Fixed compatibility issues with other plugins.
2.14.3
- Supported WordPress version 6.5 and MySQL version 8.3.
- Updated PDF Parser library to 2.9.0.
2.14.2
- Updated PDF Parser library to 2.8.0.
2.14.1
- Fixed an error when extracting text from PDF files.
2.14.0
- Added option to use mark.js to highlight search keywords.
- Adhered WordPress coding standards 3.0.1.
2.13.0
- Supported WordPress version 6.4.
- Updated WordPress version requirements to 5.5.
2.12.4
- Fixed a bug in highlighting search keywords.
- Changed the name of “Reusable Block” to “Synced Pattern”.
2.12.3
- Fixed a bug that characters on the management screen were sometimes garbled.
2.12.2
- Updated PDF Parser library to 2.7.0.
2.12.1
- Replaced composer autoloader with Jetpack autoloader.
2.12.0
- Updated PDF Parser library to 2.4.0.
- Code refactoring to meet WordPress PHP Coding Standards.