RocoSearch

By rocosearch

0+ active installationsVersion 0.1.0

Smarter WordPress search that forgives typos, finds products by SKU and shows results as you type. Works the moment you activate it.

Description

Default WordPress search misses typos, ignores half your content and shows results in the wrong order. One wrong letter and your visitor sees “Nothing found”. A shopper types the product code from their invoice and gets an empty page. They don’t think “I made a typo”. They think you don’t have it, and they leave.

RocoSearch replaces it with a search that finds what people mean. It works the moment you activate it, with your theme’s own search box and results page, and every setting is written as a plain sentence.

Try the live demo | Documentation | rocosearch.com

Never lose a visitor to a spelling mistake

  • Typos forgiven automatically: “hodie” finds hoodies, “instalation” finds your installation guide. One mistake is forgiven in short words and two in longer ones.
  • Visitors see what happened: “Showing results for hoodie”, in the results page and in the list as they type.
  • Did you mean? When nothing matches, visitors get a one-click suggestion instead of a dead end.
  • Corrections come from your own site, never a dictionary, so they always lead somewhere. Real words are never “corrected”.

Results as visitors type

A fast dropdown appears under your theme’s own search box, from the first two letters. Product pictures and prices are included, and results of different kinds (guides, products, pages) are grouped under headings. It works from the keyboard and with screen readers, and you can switch it off.

The best match first

Results where the words appear in the title, together and in order, rank above passing mentions. Words match in any form: “running” finds “run”, “boxes” finds “box”. Half-typed words are completed.

WooCommerce product search, free

  • Every product detail: name, SKU, barcode (GTIN, UPC, EAN, ISBN), brand, category, tag and attributes such as colour and size.
  • Variations included: the code of each size or colour finds its product.
  • Codes typed any way: “FH-2041”, “FH 2041” and “fh2041” all find the same product. An exact code match always comes first.
  • Out-of-stock products: show them lower, as normal, or hide them. No limit on the number of products.

Search everything, not just titles

Posts, pages, custom post types, custom fields, categories, tags and authors. Choose what can be found, and hide individual pages or products from search in a couple of clicks.

Settings anyone can understand

No weights, engines or jargon. Choose what matters most with simple “less / more” sliders, and a live preview beside the settings shows how results change before you save.

Looks after itself

  • Search stays up to date as you add or edit content.
  • A Health screen checks everything is working, in plain English, and can rebuild search in one click. Its main check also appears in WordPress’s Site Health.
  • If anything goes wrong, WordPress’s own search takes over, so visitors always get results.

Fast

On a 20,000-product test shop, a typical search took 21 thousandths of a second. Even the slowest search we measured took under a fifth of a second.

Private by design

  • The free plugin makes no outside requests and records nothing about visitors.
  • Nothing appears in results that WordPress itself wouldn’t show that visitor. Drafts are never searchable, private items only appear for people allowed to see them, and the text of password-protected items is never searched.

Works with

  • WooCommerce, and any WordPress site without it.
  • Block themes and classic themes. Tested with Twenty Twenty-Five, Astra, GeneratePress and Elementor’s WordPress Search widget.
  • The block editor’s Search block.
  • Multisite networks: each site has its own search.
  • Multilingual sites using Polylang: visitors only see results in their language.
  • WP-CLI: wp rocosearch index, wp rocosearch search and wp rocosearch status.
  • Developers can adjust behaviour with filters and actions, all prefixed rocosearch_.

Tested on WordPress 6.7 to 7.1, WooCommerce 10.3 to 11.1 and PHP 8.1 to 8.4. 275 automated tests run on every change.

RocoSearch Pro

The free plugin is the whole search, with nothing locked or limited. RocoSearch Pro is an optional add-on for sites that want to learn from their search and sell more with it:

  • Search insights: top searches, searches that found nothing, and searches that led to sales.
  • One-click fixes: teach search that two words mean the same (“jumper” and “sweater”), or send a search straight to the right page.
  • A richer dropdown: add to cart, sale badges, and category and brand suggestions.
  • Filters on the results page: category, brand, colour, size, price and stock, with no extra plugin.

From $49 a year. Search history stays on your own site, without names or IP addresses.

Source code

The compiled JavaScript in the build folder is made from the readable source in the js folder with @wordpress/scripts (wp-scripts build).

Installation

  1. In your WordPress admin, go to Plugins > Add New Plugin and search for “RocoSearch”.
  2. Click Install Now, then Activate.
  3. Go to Search > Overview. RocoSearch prepares your content in the background. Your normal search keeps working until it’s done.

That’s it: your existing search box now uses RocoSearch. Visit Search > Settings to fine-tune it.

FAQ

Will my search look different?

No. RocoSearch changes what your search finds and the order it shows things in, not how your theme looks. Your search box and results page stay as they are. The one addition is the list of results that appears as people type, which you can switch off under Search > Settings.

How do I know it’s working?

Go to Search > Overview and type into “Try a search”. Or search your site with a small typo, like “hodie” for “hoodie”. Search > Health checks everything in plain English.

How long does it take to set up?

It starts preparing your content in the background as soon as you activate it. In our tests it handled about 100 items a second. In the background it works more gently, so a large shop can take a while. Your normal WordPress search keeps working until it’s ready.

Setting up seems to be stuck

Open Search > Health. If it says background tasks don’t seem to run on your site, keep that page open and it will finish, or ask your host to turn on WordPress’s scheduled tasks. Developers can also run wp rocosearch index.

The list of results doesn’t appear under my search box

Check “Show results as people type in a search box” is ticked under Search > Settings. The list works with any standard WordPress search box, including the Search block. Some themes and plugins use their own kind of search box, which it can’t attach to; your results page still uses RocoSearch. Security plugins that block WordPress’s REST API for visitors also stop the list.

Can shoppers search by SKU or barcode?

Yes. Product codes (SKU), barcodes (GTIN, UPC, EAN, ISBN) and the codes of each variation are all searchable. An exact code match always comes first.

Can I hide a page or product from search?

Yes. Under Search > Settings, find it in “Never show these in search:” and it disappears from results and the list.

What happens to out-of-stock products?

You choose under Search > Settings: they can appear lower in results, appear as normal, or be hidden from search. RocoSearch also follows WooCommerce’s own “Hide out of stock items” setting.

Can private or draft content show up?

No. Nothing appears that WordPress itself wouldn’t show that visitor. Drafts are never searchable. Private items only appear for people allowed to see them, and never in the list of results as people type. For password-protected items, only the title is searchable, never the text.

Will it slow down my site?

On a 20,000-product test shop, a typical search took 21 thousandths of a second. RocoSearch keeps its search data in your database; Search > Health shows how much space it uses. If your host limits database size, choose “the first 500 words” under Settings to make it smaller.

Can I use it with another search plugin?

Only one plugin should answer your site’s searches, so switch off any other plugin that replaces search results. Plugins that only change how the search box looks are usually fine.

Does it work on multilingual sites?

Yes, with Polylang. Visitors only see results in the language they’re browsing, both on the results page and as they type. Items that aren’t translated show in every language.

Does it work on multisite networks?

Yes. Each site has its own search and its own settings.

Does RocoSearch record what visitors search for?

No. The free plugin doesn’t record searches and doesn’t send data anywhere. The optional Pro add-on keeps a history of the words searched (no names, IP addresses or cookies) so you can see what shoppers look for, and suggests text for your privacy policy.

What happens if I deactivate or delete it?

Deactivate it and WordPress’s normal search takes over straight away; your settings are kept. Delete it from the Plugins screen and all its data is removed.

Screenshots

Changelog

0.1.0

  • First release.