---
title: "How search engines work"
description: "Search engines crawl pages, index what they find, then serve the best matches for each search. Each stage explained with what can go wrong."
url: https://ursy.com/wiki/how-search-engines-work/
updated: 2026-11-24T23:06:42+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/how-search-engines-work/
---

# How search engines work

> Search engines crawl pages, index what they find, then serve the best matches for each search. Each stage explained with what can go wrong.

**Search engines work in 3 stages: they crawl the web to find and fetch pages, index those pages by reading and storing what they contain, and then serve results by picking and ordering the stored pages that best answer each search.** Every search engine, from [Google](https://ursy.com/wiki/google/) to [Bing](https://ursy.com/wiki/bing/), follows this basic pattern. Knowing which stage a page is stuck at tells you what to fix.

## What are the 3 stages? {#what-are-the-3-stages}

Google sets out the stages in its [in-depth guide to how Search works](https://developers.google.com/search/docs/fundamentals/how-search-works). We use the same 3 words across our wiki:

| Stage | What happens | What can go wrong |
| --- | --- | --- |
| [Crawling](https://ursy.com/wiki/crawling/) | A [bot](https://ursy.com/wiki/bot-web-robot/) downloads text, images and video from pages it has found | Blocked by robots.txt, server errors, no links pointing in |
| Indexing | The engine reads the page, works out its topic and stores it | Thin or [duplicate content](https://ursy.com/wiki/duplicate-content/), a noindex rule, wrong canonical |
| Serving | For each search, the engine picks and orders the stored pages | Weak relevance, poor quality signals, a stronger rival |

## How does crawling work? {#how-does-crawling-work}

A crawler is a program that fetches pages automatically. Google’s is called [Googlebot](https://ursy.com/wiki/googlebot/); Bing’s is [Bingbot](https://ursy.com/bots/bingbot/). There is no central list of every page on the web, so crawlers must discover addresses. Google says most new pages are found by following a link from a page it already knows. The rest come from lists such as an [XML sitemap](https://ursy.com/wiki/xml-sitemap/).

Googlebot decides for itself which sites to visit, the gap between visits and the number of pages taken each time. It tries not to overload a server. Your [robots.txt](https://ursy.com/wiki/robots-txt/) file tells it which paths to stay out of. Google’s [link guidance](https://developers.google.com/search/docs/crawling-indexing/links-crawlable) adds a practical point: it can reliably follow a link only when it is an a element with an href attribute. A link built from a span or an onclick script may never be followed.

Some engines also accept a push. [IndexNow](https://www.indexnow.org/) is a simple ping that tells taking-part engines a [URL](https://ursy.com/wiki/url/) has changed. When we checked, its site listed Microsoft Bing, Naver, Seznam.cz, [Yandex](https://ursy.com/wiki/yandex/) and Yep. Google is not on that list. Read more on [IndexNow](https://ursy.com/wiki/indexnow/).

## What is rendering? {#what-is-rendering}

Many pages build their content with JavaScript. Google says it runs that code with a recent version of Chrome, so it can see content that appears after the first download. This step is called [rendering](https://ursy.com/wiki/rendering/). It costs the engine more time than reading plain [HTML](https://ursy.com/wiki/html/), which is why [JavaScript SEO](https://ursy.com/wiki/javascript-seo/) is its own subject. If key text only appears after a click, a bot may never see it.

## How does indexing work? {#how-does-indexing-work}

Once a page is fetched, the engine reads the text, the [title tag](https://ursy.com/wiki/title-tag/), headings, image [alt text](https://ursy.com/wiki/alt-text/) and links. It works out what the page is about. It also groups pages that look the same and picks one to represent the group. That chosen page is the canonical, and it is the one that may appear in results. A [canonical tag](https://ursy.com/wiki/canonical-tag/) is your hint about which one you want.

The result goes into the [search engine index](https://ursy.com/wiki/search-engine-index/), a huge database. Google is clear that being crawled does not mean being indexed: not every page it processes is kept. Pages with little unique value, or with a [noindex](https://ursy.com/wiki/noindex/) rule, are left out.

## How does serving work? {#how-does-serving-work}

When someone searches, the engine looks through its index for matching pages and orders them. Google says relevance is judged on hundreds of factors, and that these can include the searcher’s location, language and device. A search for “bike repair” in Bristol on a phone gets a different page of results from the same words typed in Glasgow on a laptop.

The ordering is done by many systems working together. Google’s [ranking systems guide](https://developers.google.com/search/docs/appearance/ranking-systems-guide) names some of them: [RankBrain](https://ursy.com/wiki/google-rankbrain/) and BERT for understanding language, link analysis systems including [PageRank](https://ursy.com/wiki/pagerank/), freshness systems, a reviews system, spam detection, and a site diversity system that usually shows no more than 2 results from one site in the top listings. The final page may also include [SERP features](https://ursy.com/wiki/serp-feature/) such as maps, images or an [AI Overview](https://ursy.com/wiki/ai-overview/).

## Can you pay to rank higher? {#can-you-pay-to-rank-higher}

No. Google says money buys neither extra crawl visits nor a higher organic place. Ads are sold separately and are labelled. Organic places are earned.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

[AI search](https://ursy.com/wiki/ai-search/) tools sit on top of the same stages. A tool such as [ChatGPT search](https://ursy.com/wiki/chatgpt-search/) or [Perplexity](https://ursy.com/wiki/perplexity/) has its own crawlers, such as [OAI-SearchBot](https://ursy.com/bots/oai-searchbot/) and [PerplexityBot](https://ursy.com/bots/perplexitybot/). If a bot cannot fetch your page, no assistant can quote it. If your page is fetched but the facts are buried, the answer may quote a rival instead. The new step is that the engine writes an answer from several sources rather than only listing links. See [retrieval-augmented generation](https://ursy.com/wiki/retrieval-augmented-generation/) and our guide on [how AI Overviews pick sources](https://ursy.com/guides/how-google-ai-overviews-pick-sources/).

## Common mistakes {#common-mistakes}

- **Blocking a page in robots.txt and adding noindex.**  If the bot cannot fetch the page, it never sees the noindex.
- **Orphan pages.**  A page with no links pointing to it is hard to discover. See [orphan page](https://ursy.com/wiki/orphan-page/).
- **Thinking a sitemap forces indexing.**  It helps discovery. It does not make the engine keep the page.
- **Hiding content behind scripts or clicks.**  Put the main text in the HTML.

## A worked example {#a-worked-example}

A Manchester bakery adds a page for wedding cakes. It links to it from the homepage menu and lists it in the sitemap. Googlebot follows the link within days and fetches the page. The page has a clear title, 400 words of its own text, real photos and prices, so it is indexed. A month later, a search for “wedding cakes Manchester” from nearby shows it on page 2. The bakery earns 2 links from local wedding blogs, and over time the page climbs. Each stage worked in turn: found, stored, then ranked.

## How to check it {#how-to-check-it}

- Use the [robots.txt checker](https://ursy.com/robots-txt-checker/) to confirm bots may fetch the page.
- Run the [sitemap checker](https://ursy.com/sitemap-checker/) to see the URL is listed and the sitemap is valid.
- Use the [HTTP header checker](https://ursy.com/http-header-checker/) to read the response code a bot gets back, plus any [X-Robots-Tag](https://ursy.com/wiki/x-robots-tag/) rule.
- Open the URL in [URL Inspection](https://ursy.com/wiki/url-inspection/) in Search Console to see whether Google has indexed it. Our [indexability checker](https://ursy.com/indexability-checker/) is live now.

## Questions {#questions}

### How long does it take a new page to appear? {#how-long-does-it-take-a-new-page-to-appear}

There is no fixed time. It can be hours or weeks, depending on how easily the page is found and how much the engine values the site.

### Do all search engines work the same way? {#do-all-search-engines-work-the-same-way}

The 3 stages are the same. Each engine has its own bots, index and ranking systems, so results differ.

### Is crawling the same as indexing? {#is-crawling-the-same-as-indexing}

No. Crawling is fetching the page. Indexing is deciding to store it.

## Related words {#related-words}

- [Search engine](https://ursy.com/wiki/search-engine/)
- [Crawlability](https://ursy.com/wiki/crawlability/)
- [Indexability](https://ursy.com/wiki/indexability/)
- [Search engine algorithm](https://ursy.com/wiki/search-engine-algorithm/)
- [Search crawler](https://ursy.com/wiki/search-crawler/)

## Sources {#sources}

- [Google Search Central: In-depth guide to how Google Search works](https://developers.google.com/search/docs/fundamentals/how-search-works), checked 24 November 2026
- [Google Search Central: A guide to Google Search ranking systems](https://developers.google.com/search/docs/appearance/ranking-systems-guide), checked 24 November 2026
- [Google Search Central: Link best practices for Google](https://developers.google.com/search/docs/crawling-indexing/links-crawlable), checked 24 November 2026
- [IndexNow.org: IndexNow home page](https://www.indexnow.org/), checked 24 November 2026

*Updated 24 November 2026 by URSY.*
