Sub topic 1
How Google Search works: crawl, index, serve
Google Search turns a typed query into an ordered list of pages in three stages: crawling, indexing, and serving results. This chapter explains what happens at each stage, what can go wrong, and how to tell which stage is failing for a given page. Later chapters cover how pages are ranked within the serving stage.
Prerequisites
This chapter assumes you can do the following:
- Use a web search engine and read a results page.
- Explain what a web page and a URL are.
- Read simple HTML. This is optional, but the examples use short HTML snippets.
You do not need to know anything about ranking yet. That begins in the next chapter.
The three stages
Google describes its search process as three stages. A page has to pass through each stage in order before it can appear for a query.
- Crawling. Google downloads text, images, and video from pages it has found on the web, using automated programs called crawlers.
- Indexing. Google analyzes the downloaded content and stores it in a very large database called the index.
- Serving. When someone searches, Google looks in the index for matching pages and returns the ones it judges most relevant and useful.
Not every page completes every stage. Google does not guarantee that a page will be crawled, indexed, or shown, even when it follows all the guidance.
Stage 1: Crawling
Discovery
Before Google can crawl a page, it has to know the URL exists. Google finds URLs in three common ways:
- Following links from pages it already knows. This is the most common route.
- Reading a sitemap, which is a file where a site lists the URLs it wants Google to know about.
- Receiving a URL through tools such as Search Console.
A page that no other page links to, and that is not in a sitemap, is called an orphan page. Google may never find it.
Fetching
The crawler that does the fetching is called Googlebot. It uses algorithms to decide which sites to crawl, how often, and how many pages to fetch from each. A few points matter in practice:
- Googlebot tries not to overload a server. If your server responds slowly or returns server errors, Google slows down.
- Google crawls from a set of URLs it already knows and revisits them over time. Pages that change often tend to be revisited more often than pages that rarely change.
- The crawl budget, the number of URLs Google is willing and able to fetch from your site, rarely limits small sites. It matters more for sites with very large numbers of URLs.
Rendering
Many pages build their content using JavaScript. After fetching a page, Google renders it, meaning it runs the page in a recent version of Chrome to see what a visitor would see. Content that appears only after JavaScript runs can be indexed, but rendering happens after the first fetch and can add delay. If important content or links depend on scripts that fail, Google may not see them.
What can block crawling
A robots.txt file sits at the root of a site and tells crawlers which paths they may fetch. It can also point to a sitemap.
User-agent: *
Disallow: /cart/
Sitemap: https://www.example.com/sitemap.xmlThis file asks all crawlers to skip any URL under /cart/ and tells them where the sitemap lives.
Other things also stop crawling: pages that require a login, server errors, and network timeouts.
Stage 2: Indexing
After crawling, Google tries to understand what each page is about. This includes reading the text, the title, headings, images, and video, and looking at tags and attributes such as <title> elements and alt text. Google stores what it learns in the index.
Canonicalization
Many sites serve the same content at more than one URL. Examples are http and https versions, URLs with tracking parameters, or print views. Google groups these duplicates into a cluster and picks one URL as the canonical, the version it treats as the main one. Only the canonical is normally shown in results.
You can suggest your preferred version with a rel="canonical" link. Google treats this as a hint, not a command, and may choose a different URL if other signals disagree.
<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>Each element has a different job:
| Element | What it does | Effect on indexing |
|---|---|---|
| `<title>` | Names the page. Often used as the title link in results. | Helps Google understand the topic. |
| `meta description` | Summarizes the page. Google may use it as the snippet. | Does not decide whether the page is indexed. |
| `rel="canonical"` | Names the preferred URL among duplicates. | A hint used when choosing the canonical. |
Keeping a page out of the index
To ask Google not to show a page in results, use a noindex rule.
<meta name="robots" content="noindex">There is an important dependency here. Google can only see the noindex tag if it is allowed to crawl the page. If robots.txt blocks the page, Google never reads the tag, and the URL may still appear. To remove a page from results, allow crawling and add noindex.
Why a crawled page may not be indexed
Google indexes only a portion of what it crawls. Common reasons a page is left out:
- The page has a
noindexrule. - The content is very thin, duplicated, or of low value.
- The page is a duplicate of another URL that was chosen as canonical.
- The page returns an error status such as 404 or 500.
- The site's design makes the content hard to process, for example text locked inside images or content that never renders.
Structured data can help Google understand a page. It is markup that describes the page's content in a standard vocabulary. This example uses JSON-LD, one format Google supports.
<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>The markup states the headline, author, and publication date in a form software can read. It helps Google interpret the page and can make a page eligible for some enhanced results. It does not by itself raise ranking.
Stage 3: Serving results
When a person enters a query, Google searches the index and returns results. It does this in a fraction of a second. Two things happen here:
- Google works out what the searcher wants, using the words, their meaning, and the context.
- Google selects and orders pages from the index using many ranking systems, which weigh signals such as relevance, quality, and context.
The results page is built for the individual search. Two people can see different results for the same words because of location, language, and settings. A results page may contain ordinary blue links and also features such as images, videos, maps, or direct answers, depending on the query.
Serving is where ranking happens, and the rest of this tutorial deals with it. Before a page can be ranked, it must be in the index. A page that is not indexed has no chance to rank at all.
Locating which stage failed
When a page does not appear in Google, work through the stages in order. Each symptom points to a stage.
| Symptom | Likely stage | First thing to check |
|---|---|---|
| Google never reports finding the URL | Crawling (discovery) | Is it linked from other pages or listed in a sitemap? |
| The URL is found but not fetched | Crawling (fetch) | robots.txt rules, server errors, login requirements |
| The URL is fetched but not indexed | Indexing | `noindex`, canonical chosen elsewhere, thin or duplicate content |
| The URL is indexed but does not appear for your query | Serving | Relevance, quality, and competing pages. See the following chapters. |
A worked example
Suppose you publish a new page about repotting a snake plant at https://www.example.com/repot-snake-plant and it is missing from results a week later.
- Discovery. You check that your home page or a category page links to it, and that the sitemap lists it. It does, so discovery is fine.
- Fetch. You review robots.txt. Nothing blocks
/repot-snake-plant. The server returns status 200, so Google can fetch it. - Index. You view the HTML head. A leftover
<meta name="robots" content="noindex">from the staging site is still present. This is the cause. - Fix. You remove the tag and request indexing in Search Console. Google needs to recrawl the page before the change takes effect, which can take days.
The problem was at indexing. If you had kept changing page text, you would have wasted effort at the wrong stage.
Common mistakes
- Using robots.txt to hide a page, then also adding
noindex. Google cannot read the tag on a blocked page. - Expecting immediate results. Crawling and indexing can take days or weeks for new sites or pages.
- Assuming that indexed means ranked well. Indexing only makes a page eligible. Ranking is a separate decision made for each query.
- Treating canonical tags as commands. They are hints and can be overridden.
- Hiding key content behind scripts or logins that Googlebot cannot process.
Key points
- Google Search has three stages: crawling, indexing, and serving.
- Crawling finds and fetches pages. Indexing analyzes and stores them. Serving selects and orders pages for each query.
- robots.txt affects crawling.
noindexaffects indexing. They do not do the same job, and they conflict if combined. - Being crawled does not guarantee indexing, and being indexed does not guarantee ranking.
- Diagnose problems by finding the earliest stage where the page drops out.
Exercise
A page returns status 200 and is linked from your home page, but it is blocked by a Disallow rule in robots.txt. It also has a noindex meta tag. You want it removed from search results. Why might the URL still appear, and what should you change?
Show answer
The Disallow rule stops Google from crawling the page, so Google never reads the noindex tag. The bare URL can still be indexed if other pages link to it. Remove the Disallow rule so Google can crawl the page and see noindex. Keep the noindex tag until the page drops out of results.
Exercise
Name the stage (crawling, indexing, or serving) where each problem occurs: (a) the server times out when Googlebot requests the page, (b) Google chooses a different URL as the canonical, (c) the page is indexed but ten other pages answer the query better.
Show answer
(a) Crawling, because the page cannot be fetched. (b) Indexing, because canonical selection happens when Google processes and stores the page. (c) Serving, because the page is in the index but is not selected for the query.