WooCommerce search: why it misses products and how to fix it
WooCommerce has no search engine of its own. Product search is WordPress search limited to products: it splits the query into words and looks for each one with LIKE '%word%' in the product title, short description and description. Every word has to match, typos aren’t forgiven, and “dresses” won’t find a product called “Red Dress”. SKUs, attributes, categories and tags aren’t searched at all. You can tune a few things in code, but most of these limits don’t go away with settings: you need a search plugin with its own index or an external search service. Filters are a separate story: WooCommerce builds them from global attributes, and it doesn’t read filters from the query text.
We picked WooCommerce for this article because Veera has a plugin for it, so we know its search from the inside: the Veera Connector replaces it.
What the default search does with typical queries
Results depend on how your products are named, so instead of quoting counts from someone else’s store, here is what follows from the WordPress search code (WP_Query::parse_search). Themes and plugins can change this behavior; check your own store with the same queries.
| Query | What it tests | Default WooCommerce search |
|---|---|---|
| dress | a plain query | everything with “dress” anywhere in the title or text, including “dresser” and a description that mentions a shipping “address” |
| dresses | plural | only products whose text contains “dresses”; “Red Dress” is missed |
| sweter | a missing letter | nothing |
| buy red dress | an extra word | nothing, unless “buy” appears in the product text |
| red dress | color in the query | only if “red” appears in the text, which also matches “tailored” and “covered”; the Color attribute isn’t searched |
| tshirt | spelling | misses “T-Shirt” |
| sneakers | a synonym | misses products called “trainers” |
| cotton | material | finds products whose description mentions cotton; the Material attribute isn’t searched |
| TS-104-BL | SKU | nothing: the SKU is stored as product meta, which isn’t searched |
The extra-word row hurts the most. The product exists, the shopper spelled everything correctly, and the screen says “No products were found matching your selection.”
Why WooCommerce search misses products
WordPress searches three columns of the posts table: post_title, post_excerpt and post_content. For a product, that’s the title, the short description and the description. Nothing else. Since WordPress 6.2, the post_search_columns filter lets you narrow this list, but you can’t add other fields to it.
Every word of the query must be found. WordPress builds one condition per word and joins them with AND: each word can sit in any of the three fields, but all of them must be somewhere. One word that isn’t in the product text, like “buy”, “cheap” or “price”, empties the results.
Matching is by substring. “Dress” matches “dresses” and “address”, but “dresses” doesn’t match “dress”. There’s no stemming and no typo tolerance: a missing letter is a different string.
What isn’t searched:
- SKUs. They’re stored in product meta.
- Attributes. Global attributes like Color and Material are taxonomies, and custom product attributes live in meta. Neither is searched.
- Categories and tags. Also taxonomies. A shopper typing “kitchen” won’t find products from the Kitchen category unless the word is in their text.
- Variations. Each variation is a separate post of another type, and search looks only at products. A variation’s SKU or name won’t be found.
There’s also a quieter cause. A product whose Catalog visibility is set to “Shop only” or “Hidden” is excluded from search results on purpose. Check that setting before you blame the engine.
And there’s speed. A LIKE pattern that starts with % can’t use an index, so on a large catalog every search reads through the posts table, long descriptions included. More on that in How to add search to your website.
Stop words: what WordPress drops, and how to add your own
WordPress removes common words from the query before searching. The default English list is about, an, are, as, at, be, by, com, for, from, how, in, is, it, of, on, or, that, the, this, to, was, what, when, where, who, will, with, www. It also drops single letters. So “dress for a wedding” is searched as “dress” and “wedding”.
Store words like “buy”, “cheap” or “sale” aren’t on the list, and each one empties the results. You can add them with the wp_search_stopwords filter, for example in a small plugin or your child theme’s functions.php:
add_filter( 'wp_search_stopwords', function ( $stopwords ) {
return array_merge( $stopwords, array( 'buy', 'cheap', 'price', 'sale', 'online' ) );
} );
The list is compared with whole words, ignoring case. “Buying” is not “buy”, so add every form shoppers actually type. If every word of a query is a stop word, WordPress searches for the whole string as one phrase. The same happens when a query has more than nine words.
Two more details from the same code. A word with a minus in front is excluded: “dress -red” finds dresses without “red” in the text. And commas and plus signs split words just like spaces.
To find the words worth adding, look at your zero-result searches. In Google Analytics 4, enhanced measurement records WordPress searches automatically, because the results URL has the s parameter. An exploration with the Search term dimension shows what shoppers typed.
WooCommerce search settings, step by step
WooCommerce has no search settings screen. What you can change sits in the theme, the product data and a few lines of code.
- Use a product search box. The WooCommerce Product Search block, or the classic product search widget, adds
post_type=productto the query, so results show only products, with prices and Add to cart. A plain WordPress search box mixes in posts and pages. - Write titles the way shoppers search. Only text fields are searched, so the title should carry the product type, brand, model and the key attribute: “Women’s Red Midi Dress, Cotton” rather than “Rosa”.
- Put the SKU and key attributes into the short description if you stay with the default search. It’s a workaround, but it makes them searchable.
- Add store stop words with the filter from the section above.
- Narrow the search columns with
post_search_columnsif long descriptions add noise, for example to search only titles and short descriptions. - Check the catalog visibility of products that don’t show up.
SKU search, attributes, categories, typos and synonyms can’t be fixed this way. That takes a plugin or an external service.
Which search page shoppers see
The same store can have two search pages, and they behave differently.
/?s=dress with a regular WordPress search form shows the theme’s search template: posts, pages and products mixed together, often as plain links without prices.
/?s=dress&post_type=product from a product search box shows the WooCommerce product archive: product cards with prices, Add to cart and a Relevance sort option, which WooCommerce uses by default on search results.
Many themes put the regular WordPress form in the header. Check both, because shoppers can end up on either.
Filters in WooCommerce: where they hit a ceiling
WooCommerce filters are built from global attributes, the ones under Products → Attributes. Attributes you create inside a single product can’t be filtered. If your catalog was imported with custom attributes, the filter blocks have nothing to work with.
Filters show values exactly as they were entered. If one product has “Cotton” and another “100% cotton”, that’s two checkboxes, and ticking “Cotton” hides half your cotton products. How to bring values to one list is covered in the article on product filters.
Filters don’t read the query text. “Dress under 50” is three words for the default search, and all three must appear in the product text. In Veera, Understand the phrase turns “under $50” into a price filter, and the results keep only the dresses that fit.
What to do when the settings aren’t enough
Everything above is free and done by hand. When it’s not enough, there are several paths. Prices change often, so check the vendors’ sites.
| Path | What changes | Where it runs | Who maintains it |
|---|---|---|---|
| Relevanssi (free and Premium) | Its own index instead of LIKE, weights for fields, searches custom fields and taxonomies, partial-word matching |
Your WordPress database | You |
| SearchWP | Its own index, search engines with per-field weights, custom fields and taxonomies, WooCommerce support | Your WordPress database | You |
| FiboSearch | Live suggestions as you type, including SKUs; the Pro version adds its own index and fuzzy matching | Your server | You |
| ElasticPress | Sends WordPress search to Elasticsearch, with a WooCommerce feature and a synonyms screen | Your Elasticsearch cluster or the vendor’s hosted service | You or the vendor |
| Veera Search | Typo tolerance, synonyms and stop words in the dashboard, filters in the search window and on the results page, a zero-results report | Our cloud, on servers in the EU | Us |
Veera connects to WooCommerce through the Veera Connector plugin. It sends products, pages and posts to the cloud and replaces WordPress search with a search window and a results page with filters. A product edit reaches search within five minutes. A variable product is indexed as one card, and variation SKUs are matched exactly. Polylang and WPML are supported. Installation is on the WooCommerce integration page, and what search can do and which dictionaries it has is in the search settings.
Unlike a feed connection, there’s no freshness ceiling from a schedule and no handoff back to WordPress on Enter: the results page with filters is Veera’s too.
Veera Search is free for catalogs up to 300 products. Paid plans start at $20 a month for up to 5,000 products and $35 for up to 25,000 (all plans).
When the built-in search is enough
If you have a few hundred products, shoppers browse by category and your zero-result list for the month is short, go through the steps above and stop there.
Over a year, a plugin license can cost less than a subscription, if you have a developer to install it and keep it updated along with WordPress and WooCommerce. A cloud service pays off when there are many empty results, the catalog is large, and nobody is there to run a search index on your own server.
Frequently asked questions
Does WooCommerce search by SKU? Not by default. Store search reads the title, short description and description, and the SKU is stored in product meta. Search plugins add SKU search, and Veera matches SKUs, including variation SKUs.
Why does WooCommerce search show blog posts and pages? Your theme uses the regular WordPress search form. Switch to the WooCommerce Product Search block, or make sure the form sends post_type=product.
How do I make WooCommerce search tolerate typos? Not with settings. The default search compares substrings, so typo tolerance needs a plugin with its own index or an external search service.
Can WooCommerce search attributes like color or material? Not by default. Attributes are stored as taxonomies or product meta, which the default search doesn’t read. Plugins can index them, and in Veera they also become filters in the search window.
Run the same checks on your store with your own products: a plural, a typo, “buy” before the name, a material, an SKU, a word with a hyphen. Zeros caused by titles and stop words are fixed with the steps above. If typos and synonyms fail, install the Veera Connector following the WooCommerce guide and compare the results on your own catalog: the first 30 days are free.