New Tool Radar

AI Design Workflows

How to Check a Search Results Layout for Relevance

Check that a search results layout shows the most relevant result first, because a search that buries the answer wastes the search.

Schematic with three steps: run a test search, read the first three results, check the answer is in them.

A search box that returns results in the wrong order is worse than no search at all: the reader assumes the answer is not there. This check runs real searches and tests whether the layout puts the most relevant result where the reader will see it first.

Why this needs its own check

WCAG 2.1 success criterion 2.4.5 Multiple Ways, Level AA, requires more than one way to locate a web page within a set of pages, and search is one of the usual ways. A search that cannot find a page the site holds fails that rule in practice, even when the search box itself works.

What you need before you start

  • The site search box
  • Five real searches a reader would run
  • A note of the page each search should find

Step 1 – Run a test search

Type a real search a reader would run, such as the name of a product or a help topic, and write down the first five results in order.

Step 2 – Read the first three results

Read the titles and short descriptions of the first three results. The page the search should find must appear in the first three, with a title that matches the search words.

Step 3 – Check the answer is in them

Open the top result and confirm it answers the search. A top result that looks right but answers a different question fails, since the layout promised relevance it did not deliver.

Worked example

Practice check: a fictional Juniper Books site search

The example below is fictional. Juniper Books is an invented business used only as a practice case. No real customer, page, or product is shown. Treat it as a practice case, not as evidence about any real business.

Part What it should be As shown Result
Search for delivery Delivery page in the first three Delivery page first Pass
Search for returns Returns page in the first three Returns page second Pass
Search for gift vouchers Vouchers page in the first three Vouchers page fifth Fail – fifth, not first three
Search for opening hours Hours page in the first three Hours page first Pass

Only 3 of the 4 checks pass: delivery, returns, and opening hours. The one failure is gift vouchers, ranked fifth instead of in the first three.

What to do when something is wrong

Check why the vouchers page ranks low: a missing word in its title, a thin page, or a search index that has not been rebuilt. Fix the page and re-run the search.

Expected result. We checked the WCAG 2.2 checklist listed in Sources. We did not run a live Juniper Books search. UNTESTED: no search was run on a real site; the practice table shows the expected result pattern for a search with one buried result.

Limits

  • This check covers search result order only. It does not cover the search box itself, filters, or whether the site has a search at all.

Sources

See all