How Search Engines Work: Crawling, Indexing and Ranking, Explained

TABLE OF CONTENT

    You type “best pizza near me” and press Enter. About half a second later, you have a list of results.

    In that half second, a search engine didn’t go out and browse the internet. It had already done that work, days or weeks earlier. What you saw was an answer pulled from a giant stored copy of the web, sorted by what it guessed would help you most.

    That’s the whole idea behind how search engines work. This guide walks through it step by step, in plain English. You’ll see how Google finds a page, why some pages never show up, and where AI answers fit in.

    Quick answer: Search engines work in three main stages. Crawling: bots find and fetch pages. Indexing: the engine analyzes those pages and stores them in a huge database. Serving results: when you search, it picks the best matches from that database and ranks them. Google says it doesn’t guarantee any page will be crawled, indexed or shown.

    One search, from start to finish

    working process of search engines

    Here is the journey of a single page, from “published yesterday” to “shown on your screen.”

    1. A bot finds the URL. It sees a link to the page on another site, or reads it in a sitemap.
    2. The bot fetches the page. It downloads the HTML, and the files the page needs.
    3. The engine reads and stores it. It works out what the page is about and files it in the index.
    4. You search. The engine looks in the index, picks pages that match, and orders them.

    Steps one to three happen long before you type anything. Only step four happens “live.” That’s why a page can be perfectly good and still not show up: it may be stuck at step one, two or three.

    Let’s take each step in turn.

    Step 1: Crawling, how search engines find pages

    What is crawling in a search engine?

    Crawling is the process of discovering and fetching web pages. The program that does it is called a crawler (also a bot, robot or spider). Google’s crawler is Googlebot.

    How does Google find a page?

    Google has no master list of every page on the web. It keeps searching for new and updated ones. Google says it finds pages in three ways:

    • Links from pages it already knows. This is the most common route. A bot reads a known page, spots a link, and follows it.
    • Sitemaps. A sitemap is a file where you list your own URLs. It helps Google find pages, but it doesn’t guarantee they’ll be crawled or indexed.
    • Pages it has seen before. Google comes back to known pages to check for updates.

    That’s why internal links matter. A page with no links pointing to it is hard to find, even if it’s in your sitemap.

    What Googlebot actually does

    • It’s really two crawlers. There is a smartphone crawler and a desktop crawler. For most sites, Google mainly indexes the mobile version of your content, so most visits come from the smartphone crawler.
    • It decides how much to crawl. An algorithm chooses which sites to visit, how often, and how many pages to fetch from each one.
    • It’s polite. Crawlers are built not to overload your server. Google says an HTTP 500 error tells it to slow down. For most sites, Googlebot visits no more than about once every few seconds on average.
    • It runs your JavaScript. Google renders pages with a recent version of Chrome, so content that appears after JavaScript runs can usually be seen. It’s still safer to keep important text in the page’s HTML.
    • It reads only the first part of big files. Googlebot fetches the first 2 MB of a supported file (the first 64 MB for PDFs). Each CSS or JavaScript file is fetched separately and has the same limit. If a page’s HTML is enormous, anything after the cutoff may not be seen.

    What stops a page from being crawled?

    • A robots.txt rule that blocks the page
    • Server errors or a slow server
    • Pages behind a login
    • Network problems
    • No links pointing to the page

    Do all search engines work the same way? The basic idea is the same, but each engine runs its own crawler and index. Bing, for example, uses its own crawler, Bingbot. The details in this guide come from Google’s documentation, because Google is where most SEO work is aimed.

    Step 2: Indexing, how search engines store pages

    What is a search engine index?

    After a page is fetched, Google tries to understand it. This is indexing, and the stored result is the index: a very large database spread across thousands of computers.

    What happens during indexing

    Google looks at:

    • The text on the page
    • Key tags, such as the title element and image alt text
    • Images and videos
    • Signals such as the page’s language and the country it seems to be for

    Duplicates and canonical pages

    Many sites have the same content on more than one URL. Google groups similar pages into a cluster and picks the most representative one, called the canonical. That’s the version most likely to show in results. The others are treated as alternates.

    You can guide this choice with a canonical tag, but it’s a hint, not an order.

    Crawled does not mean indexed

    This surprises people. Google says not every page it processes gets indexed. Common reasons:

    • Low-quality content that adds little
    • A noindex rule telling Google to skip the page
    • A website design that makes the content hard to read or process
    • Duplicate content, where another page was chosen as the canonical

    And even an indexed page isn’t guaranteed to be shown. It may simply not match what people search for.

    Robots.txt vs noindex: not the same thing

    robots.txt noindex
    What it controls Whether Google may crawl a URL Whether the page may be indexed
    Where it lives A file at your site’s root A robots meta tag in the page, or an X-Robots-Tag HTTP header
    Keeps a page out of search? Not reliably. A blocked URL can still appear without a description Yes, once Google sees it
    Common mistake Using it to hide pages from search Adding it, then also blocking the page in robots.txt

    The second mistake is a classic. Google only sees a noindex rule when it crawls the page. If robots.txt blocks the crawl, Google never reads the noindex, so the rule does nothing. To keep a page out of search, leave it crawlable and add noindex. For a PDF or image, use the X-Robots-Tag header, since you can’t put a meta tag in those files.

    Step 3: Serving results, how rankings are decided

    When you search, Google looks in the index for pages that match, then returns the ones it thinks are the highest quality and most relevant.

    Google says relevance depends on hundreds of factors. It doesn’t publish the full list or the weights, so beware of anyone who claims to know them all. Google does confirm that some context counts, including your location, language and device.

    That’s why two people can search the same words and see different results. Someone searching “plumber” in Denver and someone in Dallas will see different businesses.

    Results aren’t all the same

    The type of results changes with the query. A search for a local service may show a map pack. A search for a recipe may show images and videos. A question may show a featured answer. Google decides which features fit the search.

    Can you pay to rank higher?

    No. Google says it doesn’t accept payment to crawl a site more often or to rank it higher in organic results. Ranking is automatic. Ads are separate, and they’re labelled.

    What do search engines “want”?

    Whatever the exact formula, the goal never changes: show the person searching a page that answers what they meant. Pages that do that well, load properly, and are easy to use are the ones that last through algorithm updates. Chasing tricks is a poor long-term bet.

    Where AI search fits in

    You’ve probably seen AI Overviews at the top of Google, or tried AI Mode. They sit on top of the same system. They don’t replace it.

    What Google says:

    • To appear as a supporting link, a page must be indexed and eligible to show with a snippet. That’s all.
    • There are no extra requirements for AI Overviews or AI Mode. You don’t need special files, AI text files or new markup.
    • Both can use query fan-out: instead of one search, Google runs several related searches across subtopics, then builds an answer.
    • Because of this, the links shown can be wider and more varied than in a classic results list.
    • AI Overviews only appear when Google thinks they add value, so many searches don’t show one.

    What this means for you: the basics in this guide still apply. If Google can’t crawl and index your page, it can’t use it, in classic results or in AI answers. If you set a nosnippet rule, that also stops text snippets in AI Overviews and AI Mode.

    What can go wrong, step by step

    Use this table to find where a page is stuck.

    Stage What can go wrong How to check
    Discovery No links to the page, not in the sitemap Look for the URL in your sitemap and internal links
    Crawling Blocked by robots.txt, server errors, login wall Search Console URL Inspection and robots.txt report
    Rendering Key content only appears after a script fails URL Inspection, “view crawled page”
    Indexing noindex, duplicate, low-quality or thin content Search Console “Page indexing” report
    Serving Page is indexed but doesn’t match the search, or is outranked Performance report: impressions, position

    Quick check: paste the URL into the URL Inspection tool in Google Search Console. It tells you if the page is indexed, when it was last crawled, and which version Google picked as canonical.

    Not showing up at all? Our step-by-step fix guide, Why is my website not showing up on Google?, goes through each cause.

    Search engine vs web crawler: what’s the difference?

    People mix these up, and exam questions love them.

    Search engine Web crawler
    What it is The whole system: crawling, index, ranking, results page One part of that system
    What it does Answers searches Finds and fetches pages
    Example Google Search, Bing Googlebot, Bingbot
    Do you interact with it? Yes, when you search No, it runs in the background

    In short: the crawler gathers the pages, and the search engine is the whole machine that makes use of them.

    A short glossary

    Handy if you’ve seen these words and wondered.

    • Crawling: discovering and fetching pages.
    • Indexing: analyzing a page and storing it in the index.
    • Index: the database of pages a search engine has processed.
    • Ranking: the order results are shown in.
    • Googlebot: Google’s crawler.
    • Sitemap: a file listing the URLs you want found.
    • robots.txt: a file telling crawlers which URLs not to crawl.
    • noindex: a rule asking search engines not to index a page.
    • Canonical: the main version of a page, chosen when several look alike.
    • Rendering: loading a page, scripts included, the way a browser does.

    Prefer to watch? We also have a short video: what search engines are and how they work.

    What to do with this: a quick checklist

    1. Make sure important pages are linked from other pages on your site.
    2. Submit an XML sitemap in Search Console, and keep it current.
    3. Check robots.txt isn’t blocking pages you want found.
    4. Use noindex only on pages you want hidden, and leave them crawlable.
    5. Keep key content in the HTML, not hidden behind scripts.
    6. Make the mobile version complete, since Google mainly indexes mobile.
    7. Fix server errors and slow pages.
    8. Use one clear URL per page, with a canonical tag where duplicates exist.
    9. Write for the person searching. Answer the question they came with.
    10. Check Search Console monthly for indexing problems.

    If you’d like an expert to look at crawling and indexing on your site, see our technical SEO audit service. Want to start with free tools?

    Read our guide to free SEO audit tools and their limits, and our explainer on how to read an SEO audit report.

    Frequently asked questions

    1. How do search engines work?

    They work in three stages. Bots crawl the web to find pages, the engine indexes them by analyzing and storing their content, and when you search it ranks the best matches from that index and shows them. Most of the work happens before you search.

    2. What is search engine indexing?

    Indexing is when a search engine analyzes a page it has crawled and stores the information in its index, a very large database. Only indexed pages can appear in search results. Crawled pages aren’t always indexed.

    3. What is crawling in a search engine?

    Crawling is the process where a bot, like Googlebot, discovers pages and downloads them. It finds pages by following links and reading sitemaps.

    4. What is the most common way a search engine discovers a web page?

    By following links from pages it already knows. Sitemaps help too, but links are the main route, which is why internal links matter.

    5. What is the difference between crawling, indexing and ranking?

    Crawling is finding and fetching a page. Indexing is understanding it and storing it. Ranking is deciding the order of results when someone searches.

    6. How does Google search engine work?

    Googlebot crawls pages, including rendering them with a recent version of Chrome. Google analyzes and stores them in its index, groups duplicates and picks a canonical version, then ranks matching pages using hundreds of factors, including your location, language and device.

    7. Why is my page crawled but not indexed?

    Google doesn’t index every page it processes. Common reasons are low-quality or thin content, a noindex rule, duplicate content where another URL was chosen, or a design that makes the content hard to process. Check the Page indexing report in Search Console for the exact reason.

    8. How do search engines rank websites?

    Google says it uses hundreds of factors to judge relevance and quality, and it doesn’t publish the full list. Location, language and device also play a part. The goal is to show the most helpful result for what the person meant.

    9. How do search engines make money?

    Mainly through ads shown next to or above the results. Ads are separate from organic rankings, and Google says it doesn’t accept payment to rank a site higher in organic results.

    10. Do I need to do anything special to appear in AI Overviews?

    Google says there are no extra requirements. A page needs to be indexed and eligible to show with a snippet. The usual SEO basics apply: allow crawling, link pages internally and give people a good experience.

    Do You Want More Leads and Traffic for Your Business?

    About author
    I’m Shivang Gandotra, Chief Marketing Officer (CMO) at IndeedSEO. I specialize in SEO, content strategy, technical SEO, organic growth, and lead generation, with a focus on turning search visibility into measurable business results. My work also covers Generative AI, Google AI Overviews, entity optimization, and LLM-driven search. I’m passionate about developing practical, data-driven strategies that help businesses build sustainable visibility across traditional and AI-powered search.

    Ready to get started? Take your business to the next level with IndeedSEO

    Let’s Discuss Your Project
    discuss project