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

How search engines work in 3 stages: crawling, indexing and ranking. What happens at each stage, what goes wrong and where to check it in Google Search Console.

You publish a page, wait a few weeks and search for it on Google, and nothing shows up. From the outside, 3 very different things could have happened. Google never found the page, it found the page and chose not to keep it, or it kept the page and ranks it far down the results.

Each of those is a different problem with a different fix, and guessing can waste months. A rewrite doesn't help a page Google can't fetch, and new links won't help a page Google hasn't stored.

Our short answer to how search engines work is that every page passes through 3 stages. Crawling finds and downloads the page, indexing analyzes and stores it, and ranking decides which stored pages to show for a search.

Google Search Console shows which stage a page is stuck at, and our advice is to check that before changing anything on the page.

How Search Engines Work in 3 Stages

Google's guide to how Search works describes 3 stages: crawling, indexing and serving search results. Not every page makes it through each one. Google also says it doesn't guarantee that it will crawl, index or serve any page.

The three-stage search pipeline: crawling (Googlebot discovers pages by following links), indexing (Google stores only pages worth keeping), and ranking (it orders indexed pages per query). A page must clear all three to appear.
Crawl, index, rank: the path every page takes.

Rendering is part of crawling, but it fails in its own ways, so we've given it a separate row. The last column is where we'd look in Search Console.

Stage

What happens

What can go wrong

Where to check in Search Console

Crawling

Googlebot learns about a URL from a link or a sitemap and downloads the page

robots.txt blocks the URL, the server returns errors or nothing links to the page

URL Inspection (last crawl, crawl allowed, page fetch) and the Crawl stats report

Rendering

Google runs the page's JavaScript in a recent version of Chrome to build the finished page

Content that only appears after JavaScript runs is missed when scripts are blocked or fail

URL Inspection, then Test live URL and View tested page

Indexing

Google analyzes the text, images and video, picks one URL among duplicates and may store the page

A noindex rule, duplicate content, low quality content or a canonical that points elsewhere

Page indexing report and the Google-selected canonical in URL Inspection

Serving and ranking

For each search, Google looks through its index and orders the matching pages

The page is indexed but doesn't match what searchers want, or other pages answer the query better

Performance report, filtered by page, for impressions and average position

The stages run in order. A page that fails at crawling never reaches indexing, and a page outside the index can't rank for anything. We'd fix problems in that same order.

Crawling vs Indexing

Crawling means a search engine downloads a page. Indexing means it analyzes that page and stores it in a database, which Google calls its index. Both happen out of sight, so people often treat them as one step, but they fail for different reasons.

Search Console has a separate label for each case:

  • Crawled and not indexed. Google fetched the page and decided not to store it. The label is "Crawled - currently not indexed".
  • Found and not crawled. Google knows the URL exists and hasn't fetched it yet. The label is "Discovered - currently not indexed".
  • Indexed without being crawled. A URL blocked in robots.txt can still be indexed when other pages link to it. Google can't read the page, so the result shows very little description. The label is "Indexed, though blocked by robots.txt".

Ranking comes after both. When someone searches, Google looks only at pages it has already stored.

How Search Engine Crawling Works

The web has no central list of pages. A search engine has to keep looking for new and changed URLs, and Google calls this URL discovery.

How Googlebot Finds New Pages

Googlebot is the program that does the fetching for Google Search. Google names 3 ways a URL becomes known to it:

  • Google has visited the page before.
  • A page Google already knows links to it. A category page that links to a new blog post is Google's own example.
  • The site owner submits a sitemap that lists it.

For a new page, we recommend 2 things on the day it goes live. The page should get a link from a page Google already crawls, and the XML sitemap should list it. Our internal linking strategy guide explains how to pick the pages that should carry those links.

The URL Inspection tool in Search Console also has a Request indexing button for a few URLs at a time. Google says requesting the same URL again doesn't get it crawled any faster.

What Googlebot Fetches

Google's Googlebot documentation lists a few limits that are worth knowing:

  • 2 crawlers. Googlebot Smartphone and Googlebot Desktop. Most requests come from the smartphone crawler, because Google indexes the mobile version of most sites.
  • A size limit. For Google Search, Googlebot crawls the first 2MB of a supported file and the first 64MB of a PDF. It fetches each CSS and JavaScript file separately under the same limit.
  • A steady pace. For most sites, Googlebot shouldn't request pages more than once every few seconds on average. It slows down when a server gets slower or returns 500-level errors or HTTP 429.
  • No logins. Googlebot doesn't sign in, so it won't crawl pages that need an account.

Crawl Budget

Crawl budget is the set of URLs Google can and wants to crawl on one hostname. It depends on 2 things:

  • Crawl capacity limit. How much crawling the server can handle without slowing down.
  • Crawl demand. How much Google wants the content, based on the site's size, update frequency, page quality and relevance.

Most sites never need to manage it. Google's crawl budget guide says it is written mainly for 3 kinds of sites:

  • Large sites with more than 1 million unique pages whose content changes about once a week
  • Medium or larger sites with more than 10,000 unique pages whose content changes daily
  • Sites where Search Console classifies a large share of URLs as "Discovered - currently not indexed"

Google calls those numbers rough estimates. For every other site, it says an up-to-date sitemap and a regular look at the Page indexing report are enough.

On a large store, the usual waste is filter and sort URLs, because Googlebot spends its visits on near-copies of the same listing. Our ecommerce SEO guide covers how to keep those URLs under control.

How Google Renders JavaScript

Downloading the HTML is the first part of crawling. Google also renders the page: it runs the JavaScript in a headless version of Chromium to build the page a visitor would see.

Google's JavaScript SEO documentation gives the rules:

  • Google queues every page that returns HTTP 200 for rendering, with or without JavaScript, unless a robots rule tells it not to index the page.
  • A page may wait in that queue for a few seconds, and it can take longer.
  • Google won't render JavaScript from files or pages blocked in robots.txt.
  • Google reads the rendered HTML for more links and uses it to index the page.

Google still recommends server-side rendering or pre-rendering, because pages load faster and not every bot can run JavaScript. We'd keep the main content in the HTML the server sends for that reason. If your site is a JavaScript app, our headless WordPress guide compares the rendering options.

What robots.txt Does and Doesn't Do

A robots.txt file tells crawlers which URLs they may fetch. It controls crawling, and it has no direct control over indexing.

Google says a blocked URL can still be indexed when other pages link to it. To keep a page out of search results, the page needs a noindex rule, and Googlebot must be allowed to crawl the page to read that rule. A page that is both blocked in robots.txt and marked noindex keeps its noindex hidden from Google.

One mistake is worth checking on any site that once had a staging copy: a leftover Disallow: / line, which blocks the whole site.

How Google Indexes Your Content

After a crawl, Google tries to work out what the page is about. It processes the text and key tags such as the title element and image alt attributes, along with the images and video. Then it decides whether to store the page.

Indexing isn't guaranteed. Google says not every page it processes will be indexed, and it names 3 common causes:

  • The quality of the content on the page is low.
  • Robots meta rules disallow indexing.
  • The design of the website makes indexing difficult.

Structured data is an optional extra at this stage, because it gives Google explicit clues about what a page contains. Our types of schema markup guide lists the types worth adding.

How Google Picks the Canonical URL

Many sites serve the same content at more than one URL. Google groups pages with similar content into a cluster and picks the URL that best represents the group. That URL is the canonical, and it is the one that may appear in search results.

Google treats your rel=canonical tag as a strong signal, and it can still choose a different URL. URL Inspection shows both under "User-declared canonical" and "Google-selected canonical".

When the two disagree, Google sees your page as a duplicate of the other URL. Our canonical tags guide walks through the fixes.

Mobile-First Indexing

Google uses the mobile version of a site's content, crawled with the smartphone agent, for indexing and ranking. Google's advice is to give the mobile page the same primary content as the desktop page.

It is wise to check any template that hides sections on small screens. URL Inspection shows which crawler fetched a page on the "Crawled as" line.

What the Page Indexing Statuses Mean

The Page indexing report in Search Console groups the URLs that aren't indexed by reason. This table covers 6 common statuses: what Google's help page says each one means and what we'd do about it.

Status

What Google says it means

What we'd do

Crawled - currently not indexed

Google crawled the page and didn't index it. Google calls this common and says it doesn't always need attention

For a page that matters, check that it adds something to what already ranks, then link to it from related pages

Discovered - currently not indexed

Google found the URL and hasn't crawled it. Typically the crawl was expected to overload the site, so Google rescheduled it

Check server speed and errors, and remove low-value URLs so Google reaches the important ones

Duplicate without user-selected canonical

The page duplicates another page and declares no canonical, so Google chose one

Add a canonical tag, or merge the 2 pages

Duplicate, Google chose different canonical than user

You declared a canonical, and Google thinks another URL is the better one

Compare both URLs. Make the content clearly different, or point the tag at Google's choice

Excluded by 'noindex' tag

Google found a noindex rule and left the page out

Nothing, if that was the plan. If not, remove the rule and request indexing

Page with redirect

The URL redirects to another page, so this URL won't be indexed

Usually nothing. Update internal links so they point at the final URL

A large number of URLs in this report doesn't mean something is wrong. A healthy site has redirects and noindexed pages listed here, and Google doesn't index every page on the web. Our advice is to look only at the URLs you want in search.

The same report lists 404 and soft 404 URLs. Our guide to fixing 404 errors in Google Search Console shows how to sort the ones that need a redirect from the ones to leave alone.

How Google Ranks Pages

When someone searches, Google's machines look through the index for matching pages. They return the results Google judges to be the most relevant and the highest in quality.

Google says relevance is determined by hundreds of factors, and it doesn't publish a full list. The figure of 200 ranking factors that many articles repeat is an old one, and no current Google page lists them.

The 5 Signals Google Names

Google's How Search Works site groups its key signals into 5 areas. The weight of each one changes with the query. For a news topic, for example, freshness counts for more than it does for a dictionary definition.

  • Meaning. What the searcher is looking for. This includes fixing spelling mistakes and matching synonyms.
  • Relevance. Whether the content covers the query. Keywords in the headings and body text are the most basic signal, and Google also uses aggregated, anonymized interaction data.
  • Quality. Among relevant pages, Google's systems favor the ones that seem most helpful. They look for signals of expertise, authoritativeness and trustworthiness, such as links from other prominent websites.
  • Usability. When other signals are about equal, content that people find more accessible may perform better. Google gives mobile-friendly pages that load quickly as its example.
  • Context. The searcher's location, past search history and search settings.

Named Ranking Systems

Google also publishes a guide to its ranking systems. This table lists 10 of them in Google's own terms.

System

What Google says it does

BERT

An AI system that helps Google understand how combinations of words express different meanings and intent

RankBrain

An AI system that relates words to concepts, so Google can return a relevant page that doesn't contain the exact words searched

Neural matching

An AI system that matches the concepts in a query to the concepts in a page

Passage ranking

An AI system that identifies individual sections of a page to judge how relevant the page is to a search

Link analysis systems and PageRank

Systems that look at how pages link to each other to work out what pages are about and which may be most helpful

Freshness systems

Systems that show newer content for searches where people expect it

Reviews system

A system that rewards high quality reviews with insightful analysis and original research

Original content systems

Systems that show original content, including original reporting, ahead of pages that only cite it

Site diversity system

A system that generally keeps one site from taking more than 2 listings in the top results

Spam detection systems, including SpamBrain

Systems that deal with content and behavior that break Google's spam policies

Several well-known names are now retired as separate systems. Google says the helpful content system became part of its core ranking systems in March 2024. Panda joined the core systems in 2015 and Penguin in 2016.

If any of the abbreviations are new to you, our list of SEO acronyms defines them.

These 4 points get misread often, so here is what Google's documentation says about each:

  • E-E-A-T is not a ranking factor by itself. Google says its systems use a mix of factors to identify content that shows experience, expertise, authoritativeness and trustworthiness, and that trust is the most important of the 4. It gives this more weight on topics that affect health, money or safety.
  • Quality raters don't rank pages. Google says rater data is not used directly in its ranking algorithms. It uses the feedback to check that its systems are working.
  • Links still count. Google says PageRank has evolved a lot and continues to be part of its core ranking systems. Our link building strategies guide covers the methods that stay inside Google's spam policies.
  • Page experience is one input among many. Google says its core ranking systems look to reward content that provides a good page experience, and it warns against focusing on only 1 or 2 aspects of it. Our web design and SEO guide covers the design decisions that affect it.

You'll also read ranking claims based on the internal API documentation that leaked in May 2024, and on testimony from the US antitrust trial against Google. Google didn't deny that the documents were genuine. It told reporters that they could be out of context, outdated or incomplete.

We treat both as background reading. For planning, it is wise to rely on what Google has documented.

Understanding Search Intent

Before Google ranks anything, it has to work out what the searcher wants. SEOs usually sort searches into 4 types. The labels are an industry convention, and they are a practical way to predict which kind of page can rank.

The four types of search intent with example queries and the results each triggers: informational (blog posts), navigational (target site), commercial (comparisons and reviews), and transactional (product pages and ads).
Match your content type to the intent behind the query.
  • Informational. The searcher wants to learn something, as in "how search engines work". Guides and explainers fit.
  • Navigational. The searcher wants one specific site or page, as in "Search Console login".
  • Commercial. The searcher is comparing options before buying, as in "best SEO tools".
  • Transactional. The searcher is ready to act, as in "buy a domain name".

The quickest check is to run the search and look at the first page. If every result is a product page, a blog post is unlikely to rank there. Our keyword research guide shows how to group keywords by the kind of page they need.

How Bing Differs From Google

Bing runs the same 3 stages with its own crawler, Bingbot, and its own index. For a site owner, the practical difference is IndexNow.

IndexNow is a protocol that lets a site tell search engines when a URL is added, changed or deleted, so they don't have to wait for the next crawl. The search engines listed on indexnow.org are Bing, Naver, Seznam.cz, Yandex and Yep.

  • A submission to one engine alerts all of them.
  • Each engine still decides for itself whether to index the URL.
  • Google isn't on the list, so it still depends on crawling, links and sitemaps.

Setup is usually a plugin setting. IndexNow's FAQ lists WordPress, Shopify and Wix among the platforms that support it natively or through plugins, and Cloudflare offers it at the CDN level.

We recommend turning it on. Bing's results also reach people outside Bing, because Microsoft is one of the search providers OpenAI names for ChatGPT search.

AI answers are built on top of the same 3 stages. A page that isn't crawled and indexed has nothing for the AI feature to cite.

  • Google AI Overviews and AI Mode. Google's AI features documentation says a page must be indexed and eligible to appear with a snippet before it can be shown as a supporting link. It lists no extra technical requirements, no special markup and no AI text files. Both features may use query fan-out, which means Google runs several related searches to build one response.
  • ChatGPT search. OpenAI crawls the web with its own crawler, OAI-SearchBot, and it also uses third-party search providers and content from partners. OpenAI says a site that blocks OAI-SearchBot won't be shown in ChatGPT search answers.

The first job is the same for both: let the right crawlers in and get the page indexed. These guides go deeper on each one:

How to Check Each Stage on Your Own Site

This is the order we'd follow for a page that isn't showing up in Google. Every step uses a free tool.

  1. Search for the URL. Type site:example.com/your-page/ into Google. It is a quick first check of whether Google has the page.
  2. Inspect the URL in Search Console. The URL Inspection tool reports "URL is on Google" or "URL is not on Google" and gives the reason.
  3. Read the crawl details. Under Page indexing, look at the last crawl date, "Crawl allowed?" and "Page fetch". A failed fetch points to robots.txt or the server.
  4. Compare the canonicals. If the Google-selected canonical differs from yours, Google has filed the page under another URL.
  5. Test the live URL. Click Test live URL, then View tested page. Search the rendered HTML for a sentence from your main content.
  6. Open the Performance report. Filter it by the page's URL. Impressions with a low average position mean the page is indexed and the work left is ranking.
  7. Check Crawl stats on a large site. The report sits under Settings and shows crawl requests, response codes and host problems.

A new site needs patience at this point, because Google says crawling can take anywhere from a few days to a few weeks.

Our SEO guide for new websites covers the launch steps. If the site runs on WordPress, our WordPress SEO setup guide covers the settings that affect crawling and indexing.

Frequently Asked Questions

How long does it take Google to index a new page?

Google says crawling can take anywhere from a few days to a few weeks, and it doesn't guarantee indexing at all. 2 things help a new page get found: links from pages Google already crawls and a place in the XML sitemap. You can also request indexing in the URL Inspection tool. Google says asking again for the same URL doesn't make it any faster.

What is the difference between crawling and indexing?

Crawling means a search engine downloads a page. Indexing means it analyzes that page and stores it in its database. A page can be crawled and never indexed, which Search Console reports as Crawled - currently not indexed. Only indexed pages can appear in search results.

Does Google crawl every page on the internet?

No. Google says the web is larger than it can explore, so it limits the time and resources it spends on any one site. Googlebot also skips URLs blocked in robots.txt and pages that need a login.

Why is my page crawled but not indexed?

Crawled - currently not indexed means Google fetched the page and chose not to store it. Google calls this common and says it doesn't always need attention. For a page that matters, we'd check 3 things: it isn't a near-copy of another page, it adds something to what already ranks for the topic and other pages on the site link to it.

Does robots.txt stop a page from appearing in Google?

No. A robots.txt file stops crawling, and Google can still index a blocked URL when other pages link to it. To keep a page out of search results, the page needs a noindex rule, and Googlebot has to be allowed to crawl the page so it can read that rule.

How many ranking factors does Google use?

Google says relevance is determined by hundreds of factors and it doesn't publish a full list. The figure of 200 ranking factors that many articles repeat is an old one. What Google does publish is its 5 key signals (meaning, relevance, quality, usability and context) and a guide to its notable ranking systems.

Can Google read content loaded with JavaScript?

Yes. Google renders pages with a recent version of Chromium and uses the rendered HTML for indexing. Rendering happens in a queue, so it can lag behind the first fetch. Google still recommends server-side rendering or pre-rendering, because it is faster and not every bot can run JavaScript.

Do Google AI Overviews use a separate index?

No. Google says a page has to be indexed in Search and eligible to appear with a snippet before AI Overviews or AI Mode can show it as a supporting link. It lists no extra technical requirements for either feature.

Does Google use IndexNow?

No. The search engines listed on indexnow.org are Bing, Naver, Seznam.cz, Yandex and Yep. Google finds new and changed pages through crawling, links and sitemaps.

Where We'd Start

If you still can't tell where your problem sits, we'd let Search Console decide. Inspect your 5 most important URLs and note the stage where each one stops.

Crawling and indexing faults come first, because content and link work can't pay off until Google can fetch and store the page. If the same fault shows up across the whole site, our technical SEO services team can find the cause and fix it.

Once the pipeline works, the next step is the page itself. Our SEO basics guide is where we'd go from here.