Search & Filtering
Highlighting the Search Term in Results: A/B Test Idea
Highlighting matching words may help visitors understand why a result appeared. Too much highlighting can make titles harder to scan, while highlighting a weak match may expose poor relevance. Keep matching and ranking fixed and change only the highlighting.
A/B test scenario. This page is a test plan, not the result of a real experiment.
- Search
- Product page visit rate
Control vs Variant
How hard the same message is pushed is the variable.
- Changed
- Emphasis
- Page
- Search
- Difference
- added
Hypothesis
If the search term is marked in result titles, visitors may see faster how each result matches their query. That could make the right product easier to pick and raise product page visit rate, though it may also make weak matches more obvious.
Test plan
When to run this test
Plan this test when you notice visitors cannot tell which result fits their query, such as a new query submitted right after results load, session recordings of a cursor moving back and forth between titles, or exits from the results page with no click. When highlighting does its job, visitors pick the matching result sooner and need fewer follow-up queries. If search logs show irrelevant results ranking near the top, ranking may be the real problem; fix search quality first, because highlighting will not make up for it.
How to measure success
Product page visit rate
Compare product-page visits per eligible assigned visitor who sees the same search results; clicks alone do not prove the right product was found.
Also track
- Purchase conversion rate (CR)Compare purchases among all eligible assigned visitors over the same follow-up period.
- New query rateCompare visitors who submit another query after seeing results, using the same results-impression denominator.
- Search-results exit rateCompare exits among visitors assigned on the search-results page.
How to set it up
- HighlightUse one fixed, accessible style to mark query-matching words in result titles.
- DensitySet how multiple matches are shown and check that titles remain readable.
- ScopeHighlight titles only; highlighting descriptions is a separate test.
- RelevanceReview weak matches without changing ranking during the test.
- Device and queryCheck truncated mobile titles and predefined query-length groups.
What to watch when reading the result
- 1An increase in product page visit rate alone does not show that visitors found the right product. If purchase conversion rate and new query rate do not move the same way, or search-results exit rate climbs, the highlight may be pulling weak matches into view.
- 2Make sure the highlight does not rely on color alone and that contrast and a second visual cue set it apart. Keep matching narrow enough that it does not mark most of a title; if titles become hard to scan, you are measuring that setting rather than highlighting itself.
- 3This comparison speaks only to the highlight style you tested, and only in titles; highlighting descriptions is a separate comparison. Do not carry a finding from single-word queries over to long ones, and read the predefined query-length groups and truncated mobile titles separately.
- 4With no clear overall gap, an effect in one query group may be getting lost in another. Before reading groups separately, use each group's product page visit rate as the baseline in the sample size calculator and compare the sessions it requires per variant with what the group actually gets.
Frequently Asked Questions
How should matching words be highlighted?
Use one fixed, sufficiently contrasting style for matched title words. Do not rely on color alone. Highlighting descriptions is a separate comparison. Predefine the criterion for reaching the correct result.
Do more product clicks prove people found the right product?
No. Track purchase conversion and new-query rate from the same search-result population. Highlighting may expose weak matches and increase exits.
Should mobile titles and long queries be checked separately?
Yes. Review truncated titles and predefined query-length groups. Do not generalize single-word findings to long queries. Overly broad highlighting can make scanning harder.
More tests in Search & Filtering
All testsFilter Checkboxes vs a Guided Question Flow A/B Test
FiltersProduct page visit rate
Turning a checkbox filter panel into a step-by-step question flow, laid out as an experiment example with both arms, the setup type and the KPI.
Applying Filters Instantly or With a Button A/B Test
FiltersSuccessful product discovery after filtering
A CRO experiment on how filters are applied: results updating immediately against an apply button that submits selections together. Both arms and the KPI.
Header Search Field vs Menu Search A/B Test
SearchPurchase conversion rate (CR)
Compare an always-visible search field in the header with search placed inside the menu, tracking search use and downstream conversion.
