Linux 软件免费装
Banner图

PrismSearch

开发者 wteam
更新时间 2026年8月9日 22:25
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

search ajax-search site-search fuzzy-search frontend-search

下载

1.0.5 1.0.3 1.0.4

详情介绍:

PrismSearch builds a custom inverted index and provides live AJAX search through theme integration, a native block or shortcode. Features Supported NLP languages PrismSearch includes processors for: English (en), German (de), French (fr), Spanish (es), Portuguese (pt), Italian (it), Dutch (nl), Danish (da), Swedish (sv), Norwegian (no), Finnish (fi), Polish (pl), Czech (cs), Slovak (sk), Slovenian (sl), Croatian (hr), Serbian (sr), Bulgarian (bg), Romanian (ro), Hungarian (hu), Greek (el), Turkish (tr), Russian (ru), Ukrainian (uk), Lithuanian (lt), Latvian (lv), Estonian (et), Indonesian (id), Vietnamese (vi), Japanese (ja), Chinese (zh), Korean (ko), Arabic (ar), Persian (fa), Hebrew (he) and Thai (th). Some CJK and script-based languages use basic normalization and token support. Test with your own content before production use. Shortcode Add the live search box with: [prismsearch] Optional attributes: [prismsearch min_chars="3" limit="10" placeholder="Search..."] Enter key redirect: [prismsearch enter_redirect="1"] [prismsearch enter_redirect="0"] Voice input: [prismsearch voice_search="1"] [prismsearch voice_search="0"] Voice input uses the configured NLP language. Developers can override it with the prismsearch_speech_language filter. The microphone stays hidden when browser speech recognition is unavailable. Automatic theme integration Enable automatic integration under Settings > PrismSearch > Frontend. WooCommerce products must be selected under Content and indexed before they appear in results. Developers can disable automatic integration with: add_filter( 'prismsearch_automatic_theme_integration', '__return_false' ); Privacy and external services Indexing, tokenization and search run locally in WordPress. PrismSearch does not load remote frontend or admin assets. When voice search is disabled, PrismSearch does not access the microphone. When enabled and activated, speech recognition is handled by the browser Web Speech API. Audio may be processed locally or by a browser-vendor service. PrismSearch does not receive or store microphone audio; it receives only recognized text. Included third-party libraries PrismSearch includes Select2 4.1.0 for admin multi-select fields. Select2 is MIT licensed; its license is at assets/vendor/select2/LICENSE.md. Source: https://github.com/select2/select2. Templates and styling PrismSearch loads its default frontend stylesheet unless disabled in settings. Developers can also disable it with: add_filter( 'prismsearch_load_frontend_css', '__return_false' ); Override plugin templates from your theme under: template/prismsearch/ Example: template/prismsearch/item.php

安装:

  1. Upload the prismsearch folder to /wp-content/plugins/, or install the ZIP through WordPress.
  2. Activate PrismSearch.
  3. Go to Settings > PrismSearch.
  4. Select the posts, pages, public custom post types and taxonomy terms to index.
  5. Select frontend meta keys if you want them displayed in live results.
  6. Click Build Index.
  7. Verify automatic integration, or insert the PrismSearch block / [prismsearch] where needed.
Rebuild the index after changing indexed content, taxonomy or NLP language settings.

屏幕截图:

  • Live AJAX search dropdown on the frontend.
  • Index management screen with progress indicator and rebuild controls.

常见问题:

Does PrismSearch replace the default WordPress search?

Yes. Enable "Override default WordPress search" to use PrismSearch on the ?s= results page.

Can PrismSearch appear without a shortcode?

Yes. Enable Automatic theme integration, or insert the native PrismSearch block manually.

What content can PrismSearch index?

Posts, pages, selected public custom post types and selected public taxonomy terms.

Can I display custom meta fields in live search results?

Yes. Select them under "Frontend meta keys". They are displayed in AJAX results but are not indexed for search.

Does PrismSearch support typo tolerance?

Yes. Enable fuzzy typo matching. It runs as a fallback when normal search returns too few results.

What is the default live-search rate limit?

50 requests per IP per minute. Change it under Settings > PrismSearch > Security, or set 0 to disable it.

Why do I need to build the index?

PrismSearch uses its own index. Build it after installation and after changing indexed content or language settings.

Does PrismSearch update the index automatically?

Yes, when live index updates are enabled. Selected content is reindexed when saved, updated, trashed or deleted.

What is REST Search Fast Path?

An optional mode under Settings > PrismSearch > Advanced. It installs a managed MU-plugin and serves eligible anonymous REST searches after MU-plugins load, before normal plugins and the active theme. Fast Path is unavailable on multisite or when the MU-plugin location is not writable. Its managed file is removed when disabled, deactivated or uninstalled. Requests with a login cookie, Authorization or X-WP-Nonce use normal REST bootstrap. Because Fast Path skips normal plugin/theme hooks, do not enable it when access control, URLs, post-type behavior or filtering depend on them. Disable Fast Path per request with prismsearch_rest_fast_path_allowed, or globally with PRISMSEARCH_DISABLE_REST_FAST_PATH.

Can I disable the plugin frontend CSS?

Yes. Enable "Disable frontend.css", or use the prismsearch_load_frontend_css filter.

Can Enter open the full search results page?

Yes. Enable "Redirect on Enter", or use enter_redirect="1".

Does PrismSearch support voice search?

Yes. Enable "Voice search", or use voice_search="1". The microphone appears only when supported in a secure context; the browser handles permission and recognition.

Can I customize result templates?

Yes. Copy the plugin template files into your theme under template/prismsearch/ and edit them there.

更新日志:

1.0.5