Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Accept all cookies

How Do Search Engines Work? Crawling, Indexing, Ranking and AI Answers

How search engines work in 5 steps: crawling, rendering, indexing, ranking and serving, what Bing does differently, and how AI answers reuse the index.

Published on:
19/10/2026
-
Updated on:
19/10/2026
Cover of the guide to how search engines work, showing the crawling, indexing and ranking stages

Tools

Thibault Besson-Magdelain, founder of Sorank

About Author

Thibault Besson-Magdelain

Founder of Sorank, 7+ years of experience in SEO, GEO enthusiast.
On this page

In short

search engines work in three main stages. Crawlers discover and download pages by following links and sitemaps (crawling), the engine analyzes each page and stores it in a giant database called the index (indexing), and when someone types a query, ranking systems pick and order the most relevant, highest quality pages from that index (ranking and serving). AI answers such as Google AI Overviews and ChatGPT search add one more layer: they retrieve pages from a web index, then write a summary that cites some of them.

Want to go further? Ask

Understanding how search engines work is the base of every SEO decision: a page that is not crawled cannot be indexed, and a page that is not indexed can neither rank nor be cited by an AI assistant. Google explains the process in its in-depth guide to how Google Search works. This article follows the same stages, adds what Bing does differently, and shows what changes when ChatGPT, Gemini or Perplexity answer instead of a list of blue links.

What is a search engine?

A search engine is software that finds web pages matching a query. It has two parts: an index, a database of pages already discovered and analyzed, and ranking systems, which decide which indexed pages answer the query best and in what order. A search engine never searches the live web when you type a query: it searches its own stored copy of it. That is why a page published this morning can stay invisible for days.

Scale explains most design choices. According to Google, its Search index covers hundreds of billions of webpages and is well over 100,000,000 gigabytes in size (Google, How Search Works). No engine can recrawl everything every day, so each one prioritizes what to fetch, what to keep and what to show. Google dominates in most countries, but Bing, Yandex, Baidu, Naver and privacy-focused engines follow the same logic, as our list of alternative search engines to Google shows.

How do search engines work, step by step?

The three classic stages are easier to act on when you split them into five steps, each with its own levers.

StepWhat the engine doesWhat you control
1. CrawlingBots discover URLs and download pagesrobots.txt, internal links, XML sitemap, server speed
2. RenderingRuns JavaScript like a browser to see the final pageContent present in the HTML, no key text hidden behind scripts or logins
3. IndexingAnalyzes content, picks a canonical URL, stores signalsUnique content, canonical tags, noindex, titles and headings
4. RankingOrders the indexed pages for each queryRelevance to the intent, quality, links, page experience
5. ServingBuilds the results page: links, snippets, AI OverviewTitle tag, meta description, structured data, snippet controls

Step 1: crawling, discovering pages

Crawling is the discovery stage. Automated programs called crawlers (Googlebot for Google, Bingbot for Bing) start from URLs they already know and follow links to find new ones. They also read the XML sitemaps that site owners submit. Google states that Googlebot uses an algorithm to decide which sites to crawl, how often and how many pages to fetch from each, and that it tries not to crawl a site so fast that it overloads the server.

Three things block crawling: a disallow rule in the robots.txt file, pages behind a login, and server errors or timeouts. The levers are a clean internal linking structure with no orphan page, an up to date XML sitemap and a fast, stable server. Large sites also manage their crawl budget: the number of URLs a crawler is willing to fetch on the site in a given period.

Step 2: rendering, seeing the page like a browser

Many pages build their content with JavaScript. Google renders pages with a recent version of Chrome, so it can run scripts and see what a visitor sees. Rendering costs resources and can be delayed, and content that only appears after a click, or that depends on a script that fails, may never be seen. Many other crawlers, including several AI crawlers, do not run JavaScript at all: key content belongs in the initial HTML.

Step 3: indexing, understanding and storing

Indexing is the analysis stage. The engine reads the text, title, headings, images, videos and structured data, then groups pages with similar content and picks one representative URL, the canonical, which is the version eligible to appear in results. It stores signals about that page: language, target country, freshness, usability. Google compares its index to the index at the back of a book, with an entry for every word seen on every indexed page.

Indexing is never guaranteed. Google states that not every page it processes will be indexed: thin or duplicate content, a noindex directive or a design that makes analysis difficult can keep a page out. Our guide to getting pages indexed on Google covers the fixes, and a free indexability checker tells you in seconds whether a URL can be indexed.

Step 4: ranking, choosing the best answers

When a query arrives, the engine first interprets it: spelling, synonyms, language, location and the intent behind the words (learn, compare, buy, reach a specific site). It then retrieves candidate pages from the index and orders them with many ranking systems working together. Google groups the main factors into the meaning of the query, the relevance of the content, its quality, the usability of the page and the context of the search, such as location and settings. Links from other sites remain a signal of authority. The full picture is in our analysis of Google ranking factors.

Two points are often misunderstood. First, Google states that it does not accept payment to crawl a site more often or to rank it higher: ads are sold separately and labeled as such. Second, location and language change results far more than personal browsing history does.

Step 5: serving, building the results page

The last step assembles the results page. Ten blue links have become a mix of ads, local results, images, videos, "People also ask" boxes, featured snippets and, for many informational queries, an AI Overview. The title and description shown come from your title tag, meta description and page content, and structured data can make a page eligible for rich results. Each format is a separate chance to be seen.

How does Bing differ from Google?

Bing follows the same crawl, index and rank model, with a few practical differences. The main one is IndexNow, a protocol that lets a site notify engines as soon as a URL is added, updated or deleted, instead of waiting for the next crawl. According to IndexNow.org, the protocol is supported by Microsoft Bing, Naver, Seznam.cz, Yandex and Yep; Google has not adopted it. Bing results also feed Microsoft Copilot. Bing's market share is small in most countries, but setting up Bing Webmaster Tools takes a few minutes and opens a second source of traffic and data.

How do AI assistants like ChatGPT and AI Overviews find content?

AI answers sit on top of search engines rather than replacing them. Most rely on retrieval-augmented generation (RAG): the system runs one or several searches, retrieves the most relevant passages from a web index, then a language model writes an answer that cites some of those sources.

  • Google AI Overviews and AI Mode use Google's own index. Google's page on AI features and your website states that a page only needs to be indexed and eligible to show a snippet, with no special markup or AI text file required. These features use "query fan-out": they issue several related searches across subtopics to gather supporting pages.
  • ChatGPT search retrieves pages with OpenAI's crawler OAI-SearchBot. According to OpenAI's crawler documentation, sites that block OAI-SearchBot are excluded from ChatGPT search answers, while GPTBot is a separate crawler used for model training.
  • Gemini, Perplexity and Claude also combine web retrieval with generation: Gemini draws on Google Search, Perplexity and Claude send their own crawlers (PerplexityBot, Claude-SearchBot) to index the pages they can cite.

The consequence: the classic stages still decide AI visibility. A page blocked from crawling, missing from the index or buried deep in the rankings has little chance of being retrieved, and therefore cited. What changes is the final choice: the AI selects passages, not whole pages, and favors clear definitions, sourced numbers and direct answers. Our study of the sources ChatGPT cites shows which types of pages win those citations.

What can you control at each stage?

Put the stages in order and you get a checklist that works for Google, Bing and AI assistants alike:

  1. Let the right bots in. Check robots.txt for accidental disallow rules, and decide deliberately which AI crawlers you allow.
  2. Make every important page reachable within three clicks through internal links, and list it in the sitemap.
  3. Serve content in the HTML, not only through JavaScript, with fast and stable server responses.
  4. Give each topic one canonical URL and avoid near-duplicate pages that split signals.
  5. Match search intent. Start from the questions people type, which keyword research reveals, and answer them in the first lines of the page.
  6. Earn authority through links and mentions from relevant sites.
  7. Write passages that can be quoted: a definition, a number with its source, a short list of steps.
  8. Measure both channels: Search Console for Google, and AI mention tracking to see whether ChatGPT, Gemini or Perplexity cite your brand.

How have search engines changed over time?

Early engines in the 1990s ranked pages mostly by keyword matching, which was easy to manipulate. Google's PageRank, which treated links as votes, made ranking much harder to game, and the following decades added language understanding through machine learning models such as BERT, mobile-first indexing, spam detection and quality systems. The history of Google shows a steady pattern: each major change rewarded pages written for people and penalized shortcuts. Generative answers are the latest step, and they reward the same thing: clear, reliable, well-structured content.

From crawling to traffic: where to start

Search engines reward pages they can crawl, understand and trust, and AI assistants cite the pages search engines already rank. Fix access first, then indexing, then relevance and authority. To keep this running week after week, Sorank finds your keywords, publishes optimized articles with sources and internal links, and tracks whether ChatGPT, Gemini and Perplexity cite your brand, on autopilot.

Frequently asked questions

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

There is no fixed delay: a few hours on a site Google crawls often, several days or weeks on a new or rarely updated site. Linking to the page from pages already indexed and requesting indexing with the URL Inspection tool in Google Search Console speed up discovery. Indexing is still not guaranteed, even after a request.

Do search engines search the whole internet in real time?

No. They search their own index, a stored copy of the pages their crawlers have already downloaded and analyzed. A page that is blocked, behind a login or not yet crawled does not exist for the engine until it is discovered and indexed.

Does ChatGPT use Google results to answer questions?

ChatGPT does not copy Google's results. When it searches the web, it retrieves pages through OpenAI's own search infrastructure, including the OAI-SearchBot crawler, and cites the sources it used. A site that blocks OAI-SearchBot in robots.txt is excluded from those answers, so being crawlable by both Google and OpenAI matters.

Our Blog for Ambitious Company

Our free SEO tools

See all our free tools

THEY TRIED SORANK BEFORE YOU

Testimonials from ambitious founders

Organic growthE-commerce

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.fr
Organic growthSoftware

0 to 5000 clients in 8 months

Thibault BMsorank.com
Organic growthLeisure and aviation

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.com
Organic growthMusic software

x30 clicks in 4 months

Valentin Cordiertiger-sounds.com
Organic growthHealth and wellness

x30 clicks in 4 months

Rodrigue Bretonalthevia.com