Skip to content
AskMyPages

Why WordPress search is bad, and how to fix it

By Hook & Plug · Published October 19, 2026

Every WordPress site has a search box, and on most sites it is the least useful thing on the page. Visitors type a question, get a list of ten posts sorted by date, and leave. This guide explains what the built-in search really does, why it feels broken, and the four ways to fix it, in order of cost.

We make AskMyPages, one of the fixes below. The others are described as fairly as we can.

What the built-in search actually does

When a visitor searches, WordPress runs one database query: find posts and pages whose title, content or excerpt contain every word typed. Since version 3.7 it orders the results with a simple rule: titles that contain the whole phrase first, then titles with any of the words, then everything else by date.

That is the whole engine. It is fine for a blog with fifty posts and visitors who know the exact title. It is not fine for anything else.

What it ignores

  • Meaning. "Time off when a parent dies" does not match "bereavement leave". Every word has to appear.
  • PDFs and other uploads. The words inside a document are never read (see our guide on making PDFs searchable).
  • Custom fields, product attributes and taxonomy terms, unless a plugin adds them.
  • Typos and plurals. "Vacations" does not match "vacation" in most languages.
  • Weighting. A word in the title counts the same as a word in a footer sentence.
  • Noise. Draft-like pages, old announcements and tag archives all compete equally.

And there is no log. You cannot see what visitors searched for or what they got back, so you cannot tell what is missing from the site.

Fix 1: tune what you have (free)

  1. Limit search to the post types that matter. A small snippet or a settings plugin can exclude media, tags and anything else that produces junk results.
  2. Give the results page a better template: show the excerpt that contains the match, not the first 55 words of the post.
  3. Install the free version of Relevanssi. It replaces the query with its own index, adds partial-word matching and weighting for titles, and orders by relevance. For a content site this alone removes most of the complaints.
  4. Add a "did you mean" fallback: when there are no results, show the most visited pages instead of an empty page.

Fix 2: a paid keyword engine

SearchWP and Relevanssi Premium index custom fields, taxonomies, WooCommerce attributes and PDF text, let you weight each source, and keep a search log. They stay keyword-based: the visitor still has to use the right words, but a much larger share of the site is searchable and the ranking is sensible.

Expect roughly $100 to $200 a year for one site. Good fit for stores and directories with structured data.

Jetpack Search and Algolia (through the WP Search with Algolia plugin) move the index to their servers and replace the results page with an instant, as-you-type overlay with filters. Fast and polished; priced by the number of records and requests, so costs grow with the site. Both remain keyword search with synonyms you maintain by hand.

Fix 4: search by meaning, and answer the question

The newest option indexes each paragraph of each page and PDF as a vector of meaning, so a question finds the passage that answers it even when no word matches. It then answers the question in a sentence or two and links to where the answer came from.

AskMyPages does this inside the theme you already have: the search box and results page stay as they are, results are ranked by meaning as well as words, and a card above them gives a direct, cited answer in one click. If the service is ever unreachable, normal WordPress search takes over. The Free plan needs no card.

You needStart with
Blog or small site, exact titlesFix 1: tune the built-in search, Relevanssi free
Store, directory, custom fieldsFix 2: SearchWP or Relevanssi Premium
Large catalogue, instant results and filtersFix 3: Jetpack Search or Algolia
Handbooks, agreements, policies, FAQs; visitors ask questionsFix 4: AskMyPages

Whatever you choose, read the log

The search log is the cheapest research you will ever do. It tells you what people wanted and could not find. Every paid option above keeps one; the monthly summary from AskMyPages lists what visitors asked, which is a list of pages to write.

Questions people ask

Why does WordPress search show old posts first?
Because after its simple title rule it falls back to ordering by date. It has no measure of relevance beyond "the words appear".
Does the built-in search find words in PDFs?
No. Only the title, caption and description of the upload are searched, and most themes hide attachments from results.
Do I have to replace my theme's search box?
Not with Relevanssi, SearchWP or AskMyPages: they improve the results behind the box you have. Hosted instant-search products usually add their own overlay.
Is AI search safe for a members' site?
It depends on the product. AskMyPages answers only from your own content, marks members-only pages and PDFs so they are never shown to the public, and does not use your content to train models.

Try AskMyPages on your site

Free to start, no card. Keeps your theme; answers from your own pages and PDFs with the source cited.

More guides: How to make PDFs searchable on WordPress · Adding an AI assistant to a WordPress site without lock-in.