Linux 软件免费装
Banner图

AI Search for WooCommerce - Search as You Type + AI

开发者 samuelsilvapt
更新时间 2026年9月5日 06:26
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2
版权网址: 版权信息

标签

woocommerce ajax search product search semantic search search as you type

下载

1.32.0 1.14.0 1.8.0 1.1 1.11.0 1.16.0 1.6.1 1.6.3 1.7.0 1.6 1.6.2 1.7.1 1.9.0 1.9.1 1.9.2 1.12.0 1.15.0 1.19.0 1.2 1.3 1.4 1.5 1.0 1.17.0 1.18.0 1.20.0 1.21.0 1.23.0 1.23.1 1.24.0 1.25.0 1.27.0 1.28.0 1.22.0 1.28.1 1.29.0 1.30.0 1.13.0 1.33.0

详情介绍:

Two things your store search is missing: instant results while typing, and an AI that understands what shoppers mean. Drop in the AI Search Box block and your visitors see products the moment they start typing — thumbnail, title and price, right there in a dropdown. No page reload, no waiting. Then the part keyword search cannot do. When a shopper types "summer blue dress" they find your "light cotton navy sundress". When they search "headphones for running" they find your sweat-resistant wireless earbuds — even if the word "running" isn't anywhere in the product description. Default WooCommerce search matches keywords. AI Search matches meaning. It reads your entire product catalog — titles, descriptions, SKUs, categories, tags, and attributes — and converts each product into a vector that captures what it actually is. When a shopper searches, the plugin finds the closest matches by meaning, not by exact word overlap. The result: fewer empty search pages, more products surfaced for long-tail queries, and shoppers who find what they wanted on the first try. Try it live before installing: wp-search.ai/demos runs this exact plugin on three sample stores. Type your own search - or a SKU - and see the traditional results next to the AI results, side by side: Also works with blog posts, pages, and any custom post type — so you can use the same intelligent search across your whole site. Traditional Results First, AI Results After AI Search never replaces the results your search already finds — it adds to them. Every search runs in three steps, in this order:
  1. Exact matches — a query that matches a product SKU or an exact product title is always the first result.
  2. Traditional keyword results — everything WordPress and WooCommerce search would normally find (products literally containing your search words) comes next, ranked by keyword relevance instead of publish date.
  3. AI results — only below those, semantic matches are added: products that mean the same thing even when they use different words.
So if a shopper searches for something that literally exists in your store, they see exactly what they would see without the plugin — just better ordered. The AI layer only ever extends the results with products the traditional search missed. Installing AI Search will not change or hide the results your customers already find today. Search As You Type (new in 1.33.0) Two optional blocks bring live results to your storefront, without sending your shoppers to a results page first: They follow the same "traditional first" rule as the results page: keyword and SKU matches appear instantly on every keystroke, and AI suggestions are added underneath when typing pauses. This keeps your quota intact. Keystrokes cost nothing — only the pause triggers a single AI request. A ten-character search uses one embedding, not ten. Both blocks read your theme's own colours, fonts and corner radius, so they look like part of your site rather than something bolted on, on light and dark themes alike. They are fully keyboard and screen-reader accessible. And they are entirely optional: place one where you want it, or place none and nothing about your site changes. Key Features Perfect For How It Works
  1. Each product in your WooCommerce catalog is converted into a numeric "meaning fingerprint" (called an embedding) that captures its title, description, SKU, categories, tags, and attributes.
  2. When a shopper searches, the plugin first pins exact SKU/title matches, then lists every traditional keyword match (what your search finds today), ranked by relevance.
  3. The query then gets its own meaning fingerprint, which is compared against every product's fingerprint.
  4. The closest semantic matches are appended below the traditional results — extra products the keyword search missed, never replacements for it.
  5. If nothing at all is found, a multi-tier fallback kicks in so shoppers never hit an empty results page.
Embeddings are generated automatically when you publish or update products — no manual work after setup. Learn More Visit our website for documentation, demos, and examples: https://wp-search.ai/ Browse technical documentation, see live demos of the plugin in action, and learn best practices for AI-powered search.

安装:

  1. Install and activate the plugin through the 'Plugins' menu in WordPress.
  2. The setup wizard launches automatically. If you have WooCommerce active, it will detect your store and pre-select the most useful product fields (short description, categories, attributes, SKU).
  3. Run Bulk Embedding Generation from AI Search > Generate Embeddings to index your existing product catalog (or posts/pages).
  4. That's it — new and updated products get indexed automatically from this point on.
Usage

屏幕截图:

  • The AI finds what keyword search misses - shoppers describe what they want in their own words
  • Live Search block - products appear in a dropdown with thumbnail, title and price as the shopper types
  • Search settings - tune how strict or broad the AI matching should be
  • WooCommerce panel - see how many products are indexed, how many have SKUs, and what still needs attention

常见问题:

Is there a live demo?

Yes - three of them. wp-search.ai/demos runs the real plugin on a clothing store, a bookstore and an electronics store, each with its own catalogue. Type any query - your own words, an exact product name, or a SKU - and the page shows traditional search results and AI Search results side by side, each result labeled by tier. You can also drag the similarity threshold and watch the AI results change live. Nothing there is staged.

How do I add the live search dropdown to my site?

Edit any page, template or header in the block editor, click the + button and search for "AI Search". Pick AI Search Box for a search field with a dropdown, or AI Search Button for a search icon that opens a full-screen overlay - the button works well in a site header. There is nothing to configure to get started, though you can turn thumbnails, prices and the result count on or off in the block sidebar.

Do the search blocks use up my embedding quota?

Barely. Every keystroke runs a keyword and SKU search, which uses no embeddings at all. Only when the shopper stops typing does the plugin make a single AI request. So a ten-character search costs one embedding, not ten - and repeated searches are served from a five-minute cache, costing nothing.

Do I have to use the blocks?

No. They are entirely optional. If you place no block, your storefront is untouched, no extra scripts load, and the plugin works exactly as it did before - improving the results page shoppers reach after pressing Enter.

Will the search blocks match my theme?

Yes. They read your theme's own colour palette, typography and corner radius settings rather than shipping a fixed design, so they look native on light and dark themes alike. If you use a block theme, you can also adjust spacing and alignment from the block editor as usual.

Will installing AI Search change the results my visitors already get?

No. Results your search already finds are kept and shown first: exact SKU/title matches, then every traditional keyword match (ranked by relevance instead of date). AI results are only added below them — extra products the keyword search missed. If a shopper searches for something that literally exists on your site, they will still find it, in the same or a better position.

How do "term embeddings" improve search? (v1.26.0)

On top of the per-post embedding, AI Search now generates one embedding per taxonomy term — every category, tag, and WooCommerce attribute term. At search time, each post's score gets an additive boost from its best-matching term. The practical effect: shoppers searching "trainers" surface products tagged "Sneakers" even when no product description contains the word "trainers". You can manage this on the new Term Embeddings tab (opt out of specific taxonomies, bulk-generate embeddings for existing terms) and tune the boost strength via the slider on Search Configuration. Cost note: each unique taxonomy term consumes one embedding from your quota. A typical WooCommerce store has 50–500 unique terms, so the one-time cost is small — and because terms are shared across all your products, you embed each one only once. If you have an unusually large taxonomy (e.g., thousands of free-text tags), you can disable that specific taxonomy on the new tab.

Can developers customize behavior via PHP hooks?

Yes. As of v1.25.0, AI Search exposes the following filters for developers: * ai_search_embedding_content — Modify the text sent to the AI provider when generating embeddings. Useful for injecting taxonomy names, stripping boilerplate, or normalizing terminology. * ai_search_should_generate_embedding — Return false to skip embedding generation for specific posts. Useful for excluding drafts in certain categories or low-content posts. * ai_search_query_before_embedding — Rewrite the user's search query before it's embedded. Useful for synonym expansion, spell correction, or locale-specific normalization. * ai_search_similarity_threshold — Override the similarity threshold per-query or per-post-type. Useful for stricter matching on products vs. looser on blog content. * ai_search_results — Re-rank or filter the final search results. Useful for boosting in-stock products, hiding restricted content, or injecting pinned results. * ai_search_term_embedding_content(v1.26.0) Customize the text fed to the AI provider when embedding a taxonomy term. Useful for injecting parent-term names, synonym hints, or stripping boilerplate from term descriptions. * ai_search_exact_matches(v1.27.0) Add or remove post IDs pinned to the top of results as exact lexical matches (SKU / title) before AI ranking. Useful for EAN/GTIN, supplier references, or brand codes. Plus the existing ai_search_searchable_post_types filter. Code examples are included in the inline PHPDoc above each filter in the plugin source.

Does this work with WooCommerce products?

Yes — WooCommerce is the primary use case. The plugin indexes product titles, short and long descriptions, SKUs, categories, tags, and product attributes. When you activate the plugin on a store with WooCommerce, the setup wizard automatically prioritizes products and pre-selects the most useful product fields.

Can shoppers search by SKU?

Yes — and as of v1.27.0 an exact or prefix SKU match is always returned first, regardless of the AI similarity score. Random-looking codes like B08M5XDKFG carry no meaning for an embedding model, so before the semantic step the plugin checks the query against product SKUs (including variation SKUs, which resolve to their parent product) and against exact product titles. Matches are pinned to the top with a green "Exact Match" badge for editors. Partial SKUs work when the query is a single token of 4+ characters (WOO-HOOD finds WOO-HOODIE, WOO-HOODIE-LOGO, …). SKUs remain part of the embedding too, so mixed queries ("black shoes SKU-2024") still work.

Does it work with WooCommerce product attributes?

Yes. Attributes like size, color, material, and any custom attributes you configure are indexed as part of the product's searchable content. Shoppers can search by attribute values ("large cotton") and the plugin will match products with those attributes.

Does it index product variations?

The plugin indexes the parent product (including its attributes and description). Individual variation-level descriptions aren't separately indexed, but since attributes like size and color are included in the parent's embedding, searches for variation-specific terms still surface the right product.

What is required to use AI Search?

Nothing if you use our free AI Search Service (up to 10,000 embeddings per site). If you want unlimited indexing, you can use your own OpenAI API key.

What happens if the embedding API fails?

The plugin logs the error and falls back to WordPress default search automatically, so shoppers never hit a broken search page.

When are embeddings generated?

Embeddings are automatically generated when you publish a post, page, or custom post type. You can also regenerate them manually from the post editor or bulk generate them from the settings page.

Will this slow down my website?

No. Embeddings are generated in the background when content is published, not during searches. Search results are fast because they use pre-computed embeddings stored in your database.

How many embeddings can I create with the free service?

The free AI Search Service provides 10,000 embeddings per site. For unlimited usage, you can use your own OpenAI API key.

Does this work with custom post types?

Yes! AI Search works with any public custom post type. You can select which post types to make searchable in the setup wizard or settings page.

Can I index custom fields (ACF, meta boxes)?

Yes! You can configure custom post meta fields to be included in the search index. This is perfect for ACF fields, custom taxonomies, and other metadata.

What is the similarity threshold?

The similarity threshold (0.1-1.0, displayed as 10%-100%) determines how closely search results must match the query. Higher values (70%-80%) give more precise results; lower values (30%-50%) return broader matches. The default is 30%, which is a good starting point for most stores — adjust down if shoppers see too few results, adjust up if results feel loosely related.

What happens if AI Search finds no results?

AI Search has a smart 4-tier fallback system that ensures users always get results, falling back to WordPress default search if needed.

How do I change my AI provider?

Go to AI Search > General Settings and switch between the free AI Search Service or your own OpenAI API key.

Is my search data private?

Yes. Search queries are processed through the embedding API but are not stored externally. All search results and embeddings are stored in your WordPress database.

更新日志:

1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.1 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.1 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.1 1.10.0 1.9.2 1.9.0 1.8.0 1.7.0 1.6 1.5 1.4 1.3 1.2 1.1 1.0