Linux 软件免费装
Banner图

SearchWright

开发者 muhammadnan
更新时间 2026年7月29日 17:33
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

search live search instant search relevance typesense

下载

0.1.1

详情介绍:

WordPress search runs a LIKE query against your posts table. It is slow on large sites, it ranks results by date rather than relevance, and it finds nothing at all if a visitor misspells a word. SearchWright hands that job to Typesense, an open source search engine you either self-host or rent. Your content is indexed there; searches are answered from memory in a few milliseconds and tolerate typos. What it does Built to stay out of the way WooCommerce Products are indexed like any other post type, so they turn up in results. Understanding them — price, stock, variations, attributes, faceted filtering — is handled by a separate add-on plugin, which is not included here. Nothing in this plugin is disabled pending a purchase. The extension filters the add-on uses are public and documented under Settings → SearchWright → WooCommerce, so you are equally free to write your own.

安装:

  1. You need a running Typesense server first, either on Typesense Cloud or self-hosted. Note its hostname, port and admin API key.
  2. Install and activate SearchWright.
  3. Go to Settings → SearchWright, enter the host details and save, then press Test connection.
  4. On the Indexing tab, choose which post types and taxonomies to include, save, and press Rebuild index.
  5. On the Search tab, switch on the search override and, if you want it, the instant dropdown.

升级注意事项:

0.1.1 Fixes two documentation links. 0.1.0 First release.

常见问题:

Do I need a paid service?

No. Typesense is open source and runs on a small server perfectly well. Typesense Cloud is a convenience, not a requirement.

What happens if the search server goes down?

The search results page falls back to the ordinary WordPress query, so visitors still get results, just slower and less relevant ones. The instant dropdown reports that search is unavailable and does nothing else.

Does my API key end up in the page source?

No. The browser talks to a REST endpoint on your own site, which talks to Typesense server-side. The key stays on the server.

Will this work with my theme's search box?

The dropdown attaches to any input matching the CSS selector on the Search tab, which defaults to standard search fields. If your theme uses something unusual, put its selector in that box.

Does it search WooCommerce products?

Products appear in results because they are a public post type. Sorting and filtering by price, stock, attributes or variations needs the separate WooCommerce add-on described on the WooCommerce tab.

How large a site can it handle?

Indexing runs in batches from the browser, so site size is limited by your Typesense server rather than by PHP timeouts. Sites with hundreds of thousands of posts are well within Typesense's range.

Is it multisite compatible?

Each site in a network keeps its own settings and its own collection. Point them at different collection names on the Connection tab.

更新日志:

0.1.1 0.1.0