| 开发者 | brokensmile.2103 |
|---|---|
| 更新时间 | 2026年8月3日 12:51 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
<input name="s"> with a clean, intuitive search modal powered entirely by the WordPress REST API. Everything loads in real-time — with zero disruption to browsing flow.
Perfect for content-heavy blogs, WooCommerce stores, or even headless sites. Every interaction is fast, fluid, and designed to work across devices.
Want typo-tolerant, sub-50ms relevance ranking on top of that? Connect your own self-hosted or cloud Meilisearch instance in a few clicks — Init Live Search will automatically prefer it for search, and just as automatically fall back to the built-in database search if it's ever unreachable. Your visitors never see a broken search box.
It also brings AI-powered related posts and an advanced keyword generator — giving your visitors smarter ways to discover content.
This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.
GitHub repository: https://github.com/brokensmile2103/init-live-search
/wp-content/plugins/ or install via the WordPress admin panel.<input name="s"> fielddata-ils attribute#search or ?modal=search&term=your+keywordLIKE '%term%' for Title/Excerpt/Content matching on the standard database search pipeline — a major speed-up on sites with a large number of posts.wp init-live-search fulltext-reindex to build or rebuild the FULLTEXT index manually/faster.wp init-live-search meili-reindex.<script> block into admin.js (enqueued properly via wp_enqueue_script), in line with WordPress Coding Standards; translated strings are passed through via wp_localize_script so existing translations are unaffected.wp init-live-search meili-reindex to bulk-index (or rebuild) all published posts of the enabled post types into Meilisearch.INIT_LIVE_SEARCH_MEILI_ADMIN_KEY constant in wp-config.php (recommended) instead of being stored in the database.init-live-search text domain, per WordPress.org standards; .pot regenerated and the Vietnamese .po/.mo translation updated with 27 new/previously-missing strings translated.script.js) now use AbortController to cancel stale in-flight requests when the user keeps typing, preventing older/slower responses from overwriting newer search results.+word/-word now correctly narrow the results of the plain search terms instead of being merged into the same fuzzy/fallback pool. Plain words still drive the base search (with all existing fuzzy matching, synonyms, and fallback logic intact); +word requires the narrowed results to also contain that word, -word excludes results containing it — supporting multiple +/- operators in the same query (e.g. wordpress -plugin -theme).sale, visa, gym, vintage) that were silently overwriting earlier synonym definitions.loadMoreRecent() to prevent a potential crash when an item is missing its data-url attribute; normalized trailing-slash URL comparison in loadMoreGeneric() to prevent possible duplicate items when loading more results.related_only_single and related_exclude_slugs before auto-injecting /related into the search modal, preventing unwanted related searches on archives, pages, or excluded paths.related_only_single and related_exclude_slugs are properly sanitized via the existing settings flow with keyword trimming and line-by-line validation.wp-image-{ID} classes and retrieves the proper WordPress thumbnail size using attachment metadata.<img src=""> URL before using the default thumbnail.init_plugin_suite_live_search_allow_fallback_image_host for customizing allowed fallback image hosts.