外掛說明
將 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.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.
2.11.0
- Changed not to use mark.js.
- Code refactoring.
2.10.2
- Changed to remove control characters in text extracted from PDF.
- Adjusted the target tags for highlighting search keywords.
2.10.0
- Added option to search the contents of shortcodes.
- Added option to search the contents of reusable blocks.
- Added option to search HTML tags.
- Updated PDF Parser library to 2.3.0.
2.9.4
- Updated PDF Parser library to 2.2.2.
- Added full_text_search_pdf_text filter.
2.9.3
- Changed default setting values.
- Added escaping to multiple translate texts for enhanced security.
2.9.2
- Changed full-text search to exclude_from_search posts only.
- Fixed a bug that the text of attachments were not extracted when regenerating indexes.
2.9.0
- Added the ability to highlight search keywords on the search results page.
- Optimized SQL.
2.8.1
- Added a function to delete the search text of attachments.
2.8.0
- Improved performance.
- Changed to remove control characters such as spaces and line breaks from automatically extracted text in PDF.
1.0.0
- Initial release.