Sub topic 3
Relevance: matching a page to a query
This chapter covers how Google decides which indexed pages match a query. It assumes you know the crawl, index, and serve stages and have read the previous chapter on how Google interprets a query. Basic HTML helps but isn't required.
What relevance means
Relevance is how well a page's content matches the intent behind a query. It is one idea among several. Quality asks whether the page is trustworthy. Usefulness asks whether it actually helps the person. A page can match a query well and still be poor on both.
| Idea | Question it answers | Example |
|---|---|---|
| Relevance | Does this page address what was searched? | A page titled "Repot a snake plant" for the query "repot snake plant" |
| Quality | Can the page be trusted? | The same page is written by someone with real plant-care experience |
| Usefulness | Does it help the person finish their task? | The page gives soil, pot size, and timing in clear steps |
Google says it looks at many factors and that the weight of each varies by query. Relevance is the starting filter. Quality and other signals then help order the candidates.
From query to candidates
After the query is interpreted, Google looks up its index for pages that could answer it. Think of this as two steps:
- Retrieval. Find a set of candidate pages that plausibly match the query.
- Ranking. Order those candidates using relevance, quality, and context signals.
Google does not publish the exact formula. What it does document are the kinds of signals involved, and those are what you can act on.
Signals that show relevance
Words on the page
The most basic signal is whether the words in the query appear in the page, and where. Google's documentation says that if the keywords appear in headings or body text, that can indicate relevance. Appearing in prominent places such as the title and main headings is a stronger hint than appearing once in a footer.
Matching is not only literal. Google understands synonyms and related terms. A page about "fixing a leaky tap" can match "repair dripping faucet". Writing naturally, with the words your readers would use, works better than repeating one phrase.
The title and description
The title element tells Google, and searchers, what the page is about. The meta description is a summary that Google may use as the snippet. Google often rewrites both, but a clear original gives it a good starting point. The canonical link states the preferred URL when several URLs show the same content.
<head>
<title>How to Repot a Snake Plant | Example Garden</title>
<meta name="description" content="Step-by-step instructions for repotting a snake plant, including soil, pot size, and timing.">
<link rel="canonical" href="https://www.example.com/repot-snake-plant">
</head>The title names the task and the site. The description promises specific content that the page delivers. The canonical link points at one URL, so signals for duplicate versions are consolidated.
Headings and structure
Headings tell readers and Google how the page is organized. Use one clear main heading and subheadings that describe each section. Headings help Google see which part of a long page answers which part of a query.
Intent match and content type
Matching words is not enough if the page is the wrong kind of result. A query like "buy running shoes" suggests product pages. "How to tie running shoes" suggests a guide or video. A page that uses the right words but has the wrong format for the intent is less relevant to that searcher.
Query interpretation, covered in the previous chapter, decides the intent. Relevance then asks whether your page serves that intent.
Links and anchor text
Links to a page can carry descriptive text, called anchor text. Google uses it as a hint about what the linked page is about. Descriptive anchor text such as "snake plant repotting guide" says more than "click here". This signal is covered more fully in the chapter on links and authority. Here it only matters as one source of relevance evidence.
Context
The same query can mean different things to different people. Location, language, and settings change which relevant pages are best. A search for "pharmacy hours" is relevant only to pages about places near the searcher. A page can be relevant in general and still not be the right result for a given user.
Worked example
Take the query repot snake plant. Consider three pages.
| Page | What it contains | Relevance |
|---|---|---|
| A | Step-by-step repotting guide, title names the task | High. Matches words and intent |
| B | A general houseplant page that mentions repotting once | Low to moderate. Topic is related, but the page is not about the task |
| C | A page that repeats "repot snake plant" dozens of times with no real guidance | Matches words, but is poor in quality and usefulness |
Page C shows why relevance is separate from the other two ideas. It would pass a simple word match. Google's spam policies treat keyword stuffing, repeating terms to manipulate results, as a violation, so repetition can hurt a page.
Common errors
- Optimizing for one exact phrase. Google understands variations, so forcing the same phrase into every sentence reads badly and gains little.
- Targeting the wrong intent. A product page for an informational query, or the reverse, is a weak match even with perfect keywords.
- Vague titles. Titles such as "Home" or "Untitled" give no relevance information.
- Several pages competing for the same query. When near-identical pages exist, Google chooses one, and it may not be the one you wanted. Consolidate them or set a canonical.
- Relying on hidden text or stuffed keywords. These are listed in the spam policies and put the site at risk.
- Assuming the page is eligible. A page that is not indexed cannot be a candidate. A noindex tag or a blocked page removes it from consideration.
Keeping a page out of the candidate set
Sometimes you want a page to not match any query. A robots meta tag with noindex asks Google not to show the page in results.
<meta name="robots" content="noindex">Google must be able to crawl the page to see this tag. If robots.txt blocks the page, Google never reads the tag, and the URL may still appear in results without a description.
User-agent: *
Disallow: /cart/
Sitemap: https://www.example.com/sitemap.xmlThis robots.txt file controls crawling, not indexing. It is not a reliable way to keep a page out of search results. Use noindex for that, and leave the page crawlable.
Describing the page in structured data
Structured data states facts about a page in a machine-readable form. It helps Google understand the page, for example who wrote it and when. It does not by itself improve ranking.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Repot a Snake Plant",
"author": { "@type": "Person", "name": "Jane Doe" },
"datePublished": "2026-01-15"
}
</script>Structured data must match what visitors can see on the page. It can make a page eligible for richer displays in results, but it adds no relevance on its own.
A practical checklist
- Write down the query and the intent you expect behind it.
- Check that the title and main heading name the task or topic in plain words.
- Check that the body answers the query early and covers related terms naturally.
- Confirm the page type fits the intent: guide, product, list, or video.
- Use descriptive anchor text for internal links to the page.
- Make sure the page is crawlable and indexable.
- Review whether another page on your site targets the same query.
Exercise
A page repeats "cheap hotels in Lisbon" forty times, has no prices or listings, and ranks poorly. Which of relevance, quality, and usefulness does it appear to satisfy, and what spam policy might apply?
Show answer
It matches the words, so it may seem relevant on a simple word match, but it has little quality and no usefulness because it gives no prices or listings. Repeating the phrase to manipulate results is keyword stuffing, which Google's spam policies prohibit.
Exercise
You add a robots.txt rule that disallows /old-offer/ to remove that page from search results, but the URL still appears. Why, and what should you do?
Show answer
robots.txt controls crawling, not indexing. Google can still list a blocked URL it learned about from links, and it cannot read a noindex tag on a page it cannot crawl. Remove the Disallow rule and add a robots meta tag with noindex so Google can crawl the page and see it.
Exercise
Two of your pages cover "repot snake plant" with almost the same content. What problem can this cause and what are two ways to address it?
Show answer
Google chooses one of them, which may not be the one you prefer, and signals are split. Merge the pages into one stronger page, or set a canonical link on the duplicate that points to the preferred URL.