Linux 软件免费装

Scry Search: Meilisearch for WordPress

开发者 jtgraham38
更新时间 2026年11月5日 22:18
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

search semantic hybrid facets meilisearch

下载

1.4.0 1.5.2 1.8.2 1.8.4 1.0.1 1.0.2 1.5.1 1.1.1 1.0.0 1.1.0 1.1.2 1.2.0 1.2.1 1.3.0 1.5.0 1.6.0 1.7.0 1.8.0 1.8.1 1.8.3

详情介绍:

WordPress search is fine on a small blog. On a store with tens of thousands of products, or an archive that has been growing for years, it is not. WordPress is searching the database. Shoppers miss the product they came for, or the page sits there while MySQL grinds through post_content. Scry Search sends that search to Meilisearch, then hands WordPress normal posts back through WP_Query. You get fast keyword search, optional AI/semantic (hybrid) search, and a big extension surface, without ripping out your theme. If you can install a plugin and paste API keys, you can run it without writing code. If you ship WordPress for a living, you can bend it without forking it. Docs (start here): DOCS.md on GitHub — every filter/action, args, return values, when it fires, plus the window.scrySearch JS API. The same file ships in the plugin zip. Live demo: demo.scrywp.com/search-demo — the free plugin with Scry Search Facets and Scry Search Ajax. You get over 40 PHP hooks (scry_ms_*) covering indexing, documents, index settings, federated search, autosuggest, analytics, logs, and the front-end runtime. Call sites are marked in the source. Built for a lot of content A huge catalog should still be searchable. That is the case this plugin is built for. No theme changes. Not glued to a results UI. Search gets upgraded without asking you to change the theme. Admin-side tuning is a different story. Ranking, searchable and filterable fields, synonyms, typo tolerance, hybrid embedders, federated weights, and the rest are all in wp-admin (see below). You're not stuck editing Meilisearch JSON by hand, and you're not locked into a plugin-owned results page. Under the hood the plugin hooks posts_pre_query, runs the search in Meilisearch, and hands WordPress normal WP_Post objects. Same loop, same template tags, same pagination assumptions your theme already has. Need native WordPress search for one query? scry_ms_should_search. Built-in semantic / hybrid search Keyword search is the baseline. Hybrid search lives in the core plugin, not in a separate product you have to buy. Meilisearch blends full-text ranking with vector similarity, so a "fuzzy intent" query can still land on the right post or product. On a large catalog, people often don't know the exact name of the thing they want. That is when this helps. Per index, under Index Settings → Configure Index → Hybrid Search: Same WP_Query path as keyword search. No second endpoint, no alternate results page. Reindex after embedder changes so the vectors exist. Analytics can record hybrid usage in search_metadata. What you configure in wp-admin Most of Meilisearch's knobs are in WordPress — you don't need to curl the instance for day-to-day tuning. Connection — URL, admin key, optional search-only key, connection test. Index Settings (tabbed dialog per post type): Search Settings — federated post-type weights (e.g. products above blog posts), optional AJAX autosuggest (with optional form class targeting), optional matched-term highlighting (.scry-ms-highlight). Ops — task pane, Logs, Search Analytics (see For developers). You can go live from these screens alone. The hooks are there for when a project needs something the screens do not cover. Autosuggest + highlighting (optional front-end extras) These are the only front-end UI pieces the plugin ships, and both are off unless you turn them on. Your theme's results page stays yours either way. On a large site, typeahead helps someone find a product without scrolling a huge catalog. Leave it off if you don't want it. Autosuggest — Search Settings toggle. The front-end runtime finds forms via CSS selectors (defaults: #adminbarsearch, form[role="search"], including the core Search block). Debounced AJAX, same indexes as full search. Optional form class if you only want typeahead on specific forms. Thumbnails when a featured image exists. Extend discovery selectors with scry_ms_window_localized — details in DOCS.md. Shape data with scry_ms_autosuggest_results or markup with scry_ms_autosuggest_results_rendered. Highlighting — optional matched-term markup in results / autosuggest (class .scry-ms-highlight). Style it in your theme; the plugin doesn't force a look. Indexes and federation Each registered post type can get its own Meilisearch index (posts, pages, product, custom post types). Federated multi-search merges them with your Search Settings weights — Meilisearch's multi-search, not a home-rolled PHP merge. WooCommerce is a good fit when the catalog is large: select product, pick product fields and meta, and set weights if you also search posts or pages. Catalog search upgrades. Theme and checkout stay as they are. Ops: indexing For developers If you write code on top of this, start with the docs. The full reference lives there, not in a marketing PDF. Full hook reference + JS API: DOCS.md on GitHub 45 PHP hooks documented there (filters + actions). Names below; args, return values, and timing are in the docs. Call sites are tagged //@HOOK: scry_ms_… in the source. Task pane — a drawer on the plugin admin screens for Meilisearch tasks on indexes this plugin owns: status, duration, errors, and paginated history. A shared Meilisearch instance won't dump unrelated tasks into it. Useful when a bulk index of a large site stalls, or a settings update fails without saying so. Error / debug logs — Scry Search → Logs. Debug and Error levels, filterable viewer, DB-backed newest-first with load-more, API keys/tokens redacted before storage, retention + daily cleanup (or clean on demand). Hook scry_ms_log_message if you need to divert or annotate lines. Search analytics — Scry Search → Search Analytics. Dashboard with summary metrics, charts, and recent searches; optional IP anonymization / omit identifying fields; retention with WP-Cron cleanup; CSV export (admin-only, nonce-protected). Extend rows with scry_ms_analytics_event_to_insert (non-column keys go into search_metadata, including hybrid usage when enabled). Filters — indexing / documents: Filters — settings: Filters — search / client: Filters — autosuggest / admin / analytics / logs / window: Actions: JS: window.scrySearch (handle scry_ms_window-script). Wait for scrySearchReady. Forms from windowLocalized.searchFormSelectors; filter scry_ms_window_localized to add selectors (e.g. form.my-search). Per-form pre/post submit + AJAX hooks for custom front-end behavior. Code lives under features/<name>/. Prefer a search-only key on the front; the client factory supports admin vs search. Premium plugins The free plugin is the search engine. Indexing, federated search, hybrid, analytics, and the scry_ms_* hooks stay in core. Premium add-ons sit on top when you want a ready-made UI for building Meilisearch search interfaces, without replacing your theme's results templates. Facets in particular are how a large catalog becomes browsable, not just searchable. Browse the catalog at scrywp.com/premium-plugins, and try the live demo of the free plugin plus both upgrades at demo.scrywp.com/search-demo. Two upgrades in particular: Same connection, same indexes, same hooks. Install them from Scry Search → Premium Upgrades when you are ready. Skip them when a custom front end, or the built-in autosuggest, is enough. Managed hosting (ScryWP) Self-hosting is first-class. Paste any Meilisearch URL and keys into Connection Settings — Docker, bare metal, a VPS, or local dev all work the same way. Pick post types, index, ship. A large catalog doesn't change that path. It just means the engine has more documents to hold, which is what Meilisearch is for. When you'd rather not run the search engine itself, ScryWP is managed hosting built for WordPress. On a big site, the index is large enough that "who patches Meilisearch" stops being a theoretical question. What you get upfront: That is the managed value: less infrastructure for you to operate, not a different product. Choose ScryWP when ops time or handoff complexity is not where you want to spend the budget. Choose self-host or local when you need full control, a compliance boundary, or an offline sandbox. Hosting options
  1. ScryWP — managed: patched engine, monitoring, ops handled for you
  2. Self-hosted — your infrastructure, full control
  3. Local (dev) — same plugin path, offline or sandbox
Paste URL + keys, pick post types, index. Done. Fits what you already have

安装:

  1. Have a Meilisearch instance running — self-hosted, local, or ScryWP managed (see Managed hosting (ScryWP) above).
  2. Install and activate the plugin (upload to wp-content/plugins/ or via Plugins → Add New).
  3. Scry Search → Connection Settings: URL, admin key, optional search key; test connection.
  4. Scry Search → Index Settings: choose post types, save, Index Posts for each.
  5. WordPress search now uses Meilisearch. No theme changes required.
  6. Optional: enable autosuggest or highlighting under Search Settings.
  7. Optional: open DOCS.md and add your first add_filter( 'scry_ms_…' ).
You can do that whole flow from wp-admin without custom code. On a large site, step 4 is the one that takes a while. Use the task pane while Index Posts runs. The hooks are there when you need them.

屏幕截图:

  • Index Configuration Modal - Tabbed settings for ranking rules, searchable/filterable fields, synonyms, stop words, dictionary, typo tolerance, and hybrid search embedders
  • Connection Settings - Configure Meilisearch URL and API keys with connection testing
  • Search Settings - Configure post type search weights for federated search, enable AJAX autosuggest, and set the class selector for which forms receive predictive search
  • Task Drawer - Monitor Meilisearch tasks with status, timing, and error details
  • Live Search Preview - Test search queries directly from the admin panel
  • Search Analytics - Dashboard, privacy/retention settings, CSV export of analytics data

升级注意事项:

1.8.4 Indexed text no longer glues words together when they were only separated by HTML tags. Reindex so existing documents pick up the corrected text. 1.8.3 Post meta indexing no longer turns non-numeric fields into 0. Reindex so existing documents pick up the corrected values. 1.8.2 Remove error dump and die on multisearch fail. 1.8.1 Bug fixes. 1.8.0 Configurable search-input selector, autosuggest render gate (shouldRenderAutosuggest), unused return_type field removed, Facets script load order fix, and Scry Search Ajax on Premium Upgrades. See DOCS.md. 1.7.0 Autosuggest posts-per-page and AJAX debounce are filterable. Analytics adds an is_autosuggest column (upgrades when you open wp-admin) and a filter to skip inserts. See DOCS.md. 1.6.0 Lifecycle cleanup on deactivate/uninstall, password-protected post skip, pagination fix, CSV formula hardening, Recent Searches column hooks, autosuggest localization, and task pane fixes. See DOCS.md. 1.5.2 Bug fixes and added a new hook. 1.5.1 Search forms are discovered by CSS selector; extend the list with scry_ms_window_localized, and optionally limit autosuggest by form class. See DOCS.md. 1.5.0 Hybrid/semantic search and embedder management are now built into Index Settings, plus draggable searchable-field ordering and analytics for hybrid queries. See DOCS.md. 1.4.0 Tabbed Index Settings: filterable fields, custom ranking rules, dictionary, typo tolerance, raw JSON viewers, plus batched bulk indexing and new scry_ms_* hooks. See DOCS.md. 1.3.0 More developer hooks (indexing/search gates, client factory, autosuggest results, admin tabs), optional highlighting, autosuggest thumbnails, analytics metadata, Hybrid listing, indexing fix for embedder setups. See DOCS.md. 1.2.1 Upgrades page updates; task pane fix for multi-tenant Meilisearch. 1.2.0 Logs screen and expanded hooks / window.scrySearch (see DOCS.md). 1.1.2 Analytics CSV export and retention cleanup. 1.0.3 Optional AJAX autosuggest under Search Settings. 1.0.0 Initial release.

常见问题:

Will this handle a site with a huge amount of content?

Yes. WordPress search queries the database, and that falls over once you have a large catalog or a long archive. Scry Search keeps the index in Meilisearch. Each post type gets its own index, federated search merges them there (not in a PHP loop), and bulk indexing runs in batches so a full reindex doesn't have to load every post at once (scry_ms_bulk_index_batch_size). A big WooCommerce catalog and a big content library are both in scope. After you connect, run Index Posts and watch the task pane. The first index of a large site takes a while. Later saves update one document at a time.

What happens when I deactivate or uninstall?

Deactivating clears the plugin's daily cron jobs (analytics and log cleanup) so they stop running while the plugin is inactive. Your settings, API keys, custom tables, and Meilisearch indexes are left in place — reactivating restores normal operation and re-schedules cron. On a large site, that means the Meilisearch documents stay put. You are not rebuilding tens of thousands of records just because you deactivated the plugin. Deleting the plugin (uninstall) removes the two custom database tables (scry_ms_search_analytics, scry_ms_logs), all scry_ms_* options (connection keys, embedder secrets, index backups, etc.), and any remaining scheduled cron events. It does not delete indexes or documents on your Meilisearch server.

Will password-protected posts be indexed?

No for live saves — published posts with a password are skipped before indexing. Use scry_ms_should_index on bulk reindex (or always) if you need the same rule there. Already-indexed protected posts stay in Meilisearch until you reindex or wipe.

What makes this developer-friendly?

45 documented scry_ms_* hooks, call sites marked in the source, a shared client filter, and a real docs file — not a marketing PDF. Plus the tooling you'd actually use on a site: a task pane for Meilisearch jobs, error and debug logs, and search analytics (dashboard + CSV). Start here: DOCS.md. Optional window.scrySearch if you need front-end glue. No forced search results UI.

Can non-developers use it?

Yes, including on a large catalog. Connect Meilisearch, pick post types, index, and tune ranking, synonyms, weights, hybrid search, and autosuggest from wp-admin. Bring a developer in when you need behavior the screens do not cover.

Do I need semantic / AI search?

Optional. Keyword search works without it, and keyword search is already a large upgrade once the catalog is big. Hybrid is in core when you want vector similarity alongside full-text — configure embedders per index, reindex, same results templates.

Do I have to use a frontend UI from the plugin?

No. The plugin doesn't take over your results page. Your theme (or builder) still displays posts from WP_Query. Ranking, fields, synonyms, typo tolerance, hybrid, weights, and the rest are configured in wp-admin. Autosuggest and highlighting are the optional front-end extras. Leave them off and you're doing indexing and query routing only.

Do I need to change my theme?

No. Forms and search.php (or the equivalent) keep working. The plugin swaps the query engine, not the markup. Page-builder search boxes that hit WordPress search work the same way.

What is Meilisearch?

An open-source, typo-tolerant search engine: meilisearch.com. This plugin is the WordPress integration. Meilisearch handles indexing and retrieval, including libraries of content that are too big for a SQL LIKE. Use your own instance, or ScryWP.

ScryWP or self-host?

Self-host (or local dev) when you want full control, a compliance boundary, or you already run Meilisearch elsewhere. ScryWP when you would rather not operate the engine — Meilisearch kept patched and monitored on the hosting side, same plugin integration (paste a URL and keys like any other instance). Federation, hybrid, and hooks work the same either way. A large index does not push you toward one or the other. It is the same plugin.

Custom post types and meta?

Yes. Each selected post type gets its own index, which is what you want when one of those types has a huge number of records. Meta shows up in searchable fields. Tweak it in the admin, or with scry_ms_index_fields / scry_ms_index_meta_keys / scry_ms_index_prepare_document.

How does federated search work?

Meilisearch multi-search, with federation across your indexes, using the weights you set in Search Settings. The merge happens in Meilisearch, which matters when each index is large. Adjust the request with scry_ms_multi_search_*.

Will this work with WooCommerce?

Yes, including a large product catalog. Index product, choose fields and meta, and set weights if you also search other post types. Theme and checkout stay unchanged.

Synonyms, stopwords, dictionary, and typo tolerance?

Yes — per index, in the Index Settings dialog (dedicated tabs). No Meilisearch config files. Also filterable from code when you need that. On a big catalog, this is how a misspelling or a brand nickname still finds the product.

Can I configure filterable fields from WordPress?

Yes. The Filterable Fields tab lets you pick core fields, taxonomy IDs, and related attributes. Defaults and the field tree are adjustable with scry_ms_index_filterable_attributes / scry_ms_index_filterable_fields.

How do I customize with code?

The hook list is under For developers above. Common starters: scry_ms_should_index, scry_ms_index_prepare_document, scry_ms_meilisearch_client, scry_ms_autosuggest_results / scry_ms_autosuggest_results_rendered, scry_ms_admin_pages. Full signatures: DOCS.md.

JavaScript API?

Optional. Wait for scrySearchReady, then use window.scrySearch and the per-form pre/post (and AJAX) hooks. Skip it if you are not doing front-end work. Examples are in DOCS.md.

How do I debug indexing?

Use the task pane for Meilisearch tasks on the indexes this plugin manages, and Scry Search → Logs for plugin debug and error lines (secrets redacted, retention available). On a large bulk index, start with the task pane. See For developers.

Can I export analytics?

Yes — Search Analytics includes CSV export, retention and cleanup, privacy options, and scry_ms_analytics_event_to_insert for extra fields. Covered under For developers.

Is it secure?

AJAX nonces, capability checks, and sanitized/escaped I/O. Prefer a search-only API key for front-end paths. The client factory supports admin vs search keys.

更新日志:

1.8.4 1.8.3 1.8.2 1.8.1 1.8.0 1.7.0 1.6.0 1.5.2 1.5.1 1.5.0 1.4.0 1.3.0 1.2.1 1.2.0 1.1.2 1.0.3 1.0.2 1.0.1 1.0.0