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

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.
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.
The three classic stages are easier to act on when you split them into five steps, each with its own levers.
| Step | What the engine does | What you control |
|---|---|---|
| 1. Crawling | Bots discover URLs and download pages | robots.txt, internal links, XML sitemap, server speed |
| 2. Rendering | Runs JavaScript like a browser to see the final page | Content present in the HTML, no key text hidden behind scripts or logins |
| 3. Indexing | Analyzes content, picks a canonical URL, stores signals | Unique content, canonical tags, noindex, titles and headings |
| 4. Ranking | Orders the indexed pages for each query | Relevance to the intent, quality, links, page experience |
| 5. Serving | Builds the results page: links, snippets, AI Overview | Title tag, meta description, structured data, snippet controls |
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.
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.
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.
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.
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.
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.
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.
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.
Put the stages in order and you get a checklist that works for Google, Bing and AI assistants alike:
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.
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.
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.
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.
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.
THEY TRIED SORANK BEFORE YOU
