Sub topic 6
Retrieving and ranking candidate pages
This chapter covers the step between a user's question and the model's answer. In that step the system collects candidate pages from the Search index and orders them. It assumes you know the following:
- How crawling and indexing work at a basic level.
- How to read robots meta tags and robots.txt.
- What a large language model does at a high level.
Earlier chapters covered why the index comes first, what makes a page eligible, and how query fan-out turns one question into several searches. Later chapters cover grounded generation and link display. Here we look only at retrieval and ranking.
The working model
Google's public documentation describes AI Overviews and AI Mode as features built on top of Google Search. They are not a separate web index. The pages they can cite come from the Search index. The systems that choose which pages are relevant are Search's own ranking systems. Fan-out can produce more than one retrieval request per user question.
The working model for this chapter has four parts:
- A question, or several fan-out sub-queries derived from it, is sent to Search retrieval.
- For each sub-query, Search finds candidate pages in the index and ranks them with its usual ranking systems.
- The top candidates, as passages or page content, are made available to the model as grounding material.
- The model writes an answer, and supporting links are chosen from the pages that informed it.
Google does not publish the exact number of candidates, the scoring formula, or how sub-query results are merged. Anything more specific than the list above is speculation. This chapter marks that boundary where it matters.
Retrieval: finding candidates
Retrieval answers one question: which indexed documents could be relevant to this query? A page can be a candidate only if it is in the index and allowed to be shown. Everything you control about crawling and indexing therefore acts as a gate before any ranking happens.
Common reasons a page never enters the candidate pool:
- Blocked from crawling. A robots.txt rule stops Googlebot from fetching the page, so Google cannot read its content.
- Noindex. A
noindexrobots meta tag orX-Robots-Tagheader tells Google to keep the page out of the index. - Not selected as canonical. Google may index a duplicate's canonical URL instead of the URL you expected.
- Error responses. Soft 404s, 5xx errors and redirect chains can stop a page from being indexed.
- Content not visible to the crawler. Text that appears only after client-side actions Google does not perform may not be indexed.
- Snippet restrictions. A
nosnippetdirective can prevent the page from being used in these features.
Retrieval also depends on matching meaning, not only keywords. Google's documentation on fan-out says the features may issue related searches across subtopics. A page that answers a narrow sub-question well can be retrieved for a sub-query even if it would not rank for the user's original broad question. This is why a focused page on one subtopic can appear as a supporting link for a complex query.
A small eligibility check
The script below fetches one URL and reports the signals you can inspect yourself: HTTP status, X-Robots-Tag, robots meta tags and the canonical link. It cannot tell you whether Google has indexed the page. For that, use the URL Inspection tool in Search Console. It does catch the most common self-inflicted blocks.
import sys
import urllib.request
from html.parser import HTMLParser
class HeadSignals(HTMLParser):
def __init__(self):
super().__init__()
self.robots = []
self.canonical = None
def handle_starttag(self, tag, attrs):
a = dict(attrs)
if tag == "meta" and (a.get("name") or "").lower() in ("robots", "googlebot"):
self.robots.append(a.get("content") or "")
elif tag == "link" and (a.get("rel") or "").lower() == "canonical":
self.canonical = a.get("href")
def check(url):
req = urllib.request.Request(url, headers={"User-Agent": "eligibility-check/1.0"})
with urllib.request.urlopen(req, timeout=15) as resp:
status = resp.status
final_url = resp.geturl()
header = resp.headers.get("X-Robots-Tag", "")
html = resp.read(500_000).decode("utf-8", errors="replace")
parser = HeadSignals()
parser.feed(html)
directives = " ".join([header] + parser.robots).lower()
print(f"Status: {status}")
print(f"Final URL: {final_url}")
print(f"X-Robots-Tag: {header or '(none)'}")
print(f"Meta robots: {parser.robots or '(none)'}")
print(f"Canonical: {parser.canonical or '(none)'}")
if "noindex" in directives:
print("WARNING: noindex found, page will not be indexed.")
if "nosnippet" in directives:
print("WARNING: nosnippet found, page content will not be used in snippets.")
if parser.canonical and parser.canonical.rstrip("/") != final_url.rstrip("/"):
print("NOTE: canonical differs from the fetched URL.")
if __name__ == "__main__":
check(sys.argv[1])Run it with python check.py https://example.com/page. The urllib module follows redirects automatically, so compare the final URL with the one you requested.
Ranking: ordering candidates
Once candidates are retrieved, ranking orders them. Google states that AI features use Search's ranking systems and the same signals that govern normal results. Those systems consider relevance and quality, and Google describes its quality guidance in terms of helpful, reliable, people-first content.
For a publisher, this has three consequences:
- No separate AI score is documented. Google has not described an "AI ranking" you can optimise independently. Work that improves standard Search performance is the supported path.
- Rank is not the whole story. Being highly ranked for a sub-query does not guarantee a link in the answer. Later steps choose which pages support which statements.
- Ranking is per sub-query. Your page competes separately for each sub-query. You may be strong on one and absent from another.
Ranking signals you can reason about
Google's public guidance names factors without giving weights. The table separates what the documentation supports from what it does not.
| Topic | What Google's documentation says | What it does not say |
|---|---|---|
| Quality | Helpful, reliable, people-first content is favoured | A numeric quality threshold |
| Relevance | Content should match the user's need | How passages are scored against sub-queries |
| Freshness | Relevant for some queries, such as news | A rule that newer always wins |
| Structured data | Helps Google understand content | That markup is required or boosts AI inclusion |
| Special AI files or markup | No special files or markup needed | Any AI-specific tag that improves selection |
| Page experience | Part of Search's wider systems | Its exact weight in AI answers |
Passages and page-level signals
Search can use parts of a page, not only the page as a whole. This is why a long page covering many topics may still be retrieved for a narrow sub-query. Google has said in its Search documentation that ranking can consider passages within a page. The practical effect for you is structural:
- Give each section a clear heading that says what the section covers.
- Answer the question the heading asks in the text directly beneath it.
- Keep a section on one idea, so a passage taken out of context still makes sense.
This is ordinary good writing, and Google does not claim it is a special AI tactic. Nothing in the documentation promises that a particular heading format will be retrieved more often.
Worked example
Suppose a user asks: "Is it worth buying a heat pump for a 1970s semi-detached house in a cold climate?" Fan-out might produce sub-queries like these. These are illustrative, because Google does not publish the actual sub-queries:
- heat pump performance in cold climates
- insulation needs for 1970s houses
- heat pump installation cost compared with gas boiler
- running costs of heat pumps in winter
Now consider three pages on a site:
- A page titled "Cold-climate heat pumps: how they perform below freezing," which is indexed and well structured.
- A page about "Our company history," which is indexed but off-topic.
- A detailed insulation guide with
noindexleft on from staging.
Page 1 is a plausible candidate for the first and fourth sub-queries. Page 2 is indexed but not relevant, so it is unlikely to be ranked highly for any of them. Page 3 is relevant to the second sub-query but cannot be retrieved at all because of noindex. Removing the tag fixes eligibility. After that, ranking decides whether the page is competitive.
Failure modes and edge cases
- Indexed but not ranked. A page can be in the index and still rank too low for any sub-query to reach the candidate pool. The fix is better content for that query, not a technical change.
- Ranked but not linked. A page may help produce an answer yet not appear among the displayed links. Link selection is covered in a later chapter.
- Variable results. Fan-out and generation can produce different sub-queries and different answers for similar questions. Do not expect a fixed list of sources.
- Personalisation and context. Results can differ by location, language and context, so a single check from your own browser is only one sample.
- Snippet controls as a filter. A restrictive
max-snippetvalue limits how much text Google may use. Google documents that these controls apply to AI features. An extremely low value, ornosnippet, reduces what can be used from the page. - Duplicate content. If several URLs carry the same content, Google clusters them and picks a canonical. Retrieval works on the chosen canonical, so signals you intended for another URL may not count.
Practical checklist
- Confirm each target page returns a 200 status and is not blocked by robots.txt.
- Check for
noindexandnosnippetin both meta tags andX-Robots-Tagheaders. - Use URL Inspection in Search Console to confirm the page is indexed and see which URL Google chose as canonical.
- Make sure the main content is present in the rendered HTML Google sees.
- Structure the page so each section answers one clear sub-question.
- Check Search performance for the queries and pages you care about, using the measurement approach covered later in this tutorial.
Key points
- Retrieval for AI Overviews and AI Mode draws on the Search index, so crawling and indexing set the ceiling for eligibility.
- Ranking uses Search's existing systems, applied to each fan-out sub-query separately.
- Google publishes no separate AI ranking score, no required markup, and no candidate count.
- Passage-level structure and focused sections help with ordinary retrieval, and Google does not present them as a special AI technique.
- Debug in order: index status, ordinary ranking, content quality, then link display.
Exercise
A page about "winter heat pump running costs" returns a 200 status and has no robots restrictions, but it never appears as a supporting link in AI answers. A teammate suggests adding a special AI-optimised schema. According to the pipeline described in this chapter, what should you check first, and why is the schema suggestion not supported?
Show answer
Check whether the page is actually indexed and which URL Google selected as canonical, using URL Inspection in Search Console. Then check whether it ranks in ordinary Search for the relevant sub-topics, since AI features use Search's own ranking systems. The schema idea is unsupported because Google states that no special markup is required for AI features. Structured data only helps Google understand content, and it does not by itself decide which pages are retrieved or linked.
Exercise
Why can a narrowly focused page be retrieved for a complex question even when it would not rank well for the user's original broad query?
Show answer
Query fan-out turns the broad question into several narrower sub-queries, and each is retrieved and ranked separately. The focused page can rank well for one sub-query, so it can enter the candidate pool even though it is not competitive for the original wording.