Understand
What is a search engineA plain definition with real examplesTypes of search enginesCrawler, meta, vertical, private and AIBrowser vs search engineTwo tools that people often mix upExplore
Best search enginesGoogle, Bing, DuckDuckGo and moreUses of search enginesThe everyday jobs that search handlesHistory of search enginesFrom Archie in 1990 to AI answersThis how search engine works diagram shows the whole system on one page, from a bot finding a URL to a ranked list of results. The top lane runs nonstop before anyone searches, while the bottom lane happens in the second after you press Enter.
A search engine works in two lanes. Before anyone searches, it finds pages across the web to crawl and index them. When you search, it first works out what your query means. It then pulls matching pages from the index before ranking them on a results page.
The diagram
Read it left to right, top lane first. The dashed line marks the most important idea: results come from the index, never from the live web.
Swipe sideways to see the full diagram
Step by step
Use this table as a legend for the how search engine works diagram above. Every row links to the guide that explains that stage in depth.
| Stage | What happens | Learn more |
|---|---|---|
| 1. Discover | The engine learns a URL exists through links, an XML sitemap or an IndexNow ping. | Crawling guide |
| 2. Crawl | A bot such as Googlebot, also called a crawler or spider, requests the page, then saves what the server sends back. | Web crawlers |
| 3. Render | The engine runs the page’s scripts so it sees the same content a visitor would. | Five-stage guide |
| 4. Index | The text is split into words, then filed in the index database as an inverted index that points back to the page. | Indexing guide |
| 5. Understand | The engine fixes spelling, adds synonyms, then works out what the searcher really wants. | Components |
| 6. Retrieve | It pulls every page from the index that matches the query’s keywords or meaning, often thousands of candidates. | Components |
| 7. Rank | Ranking algorithms score each candidate for relevance, quality, freshness or context. | Ranking guide |
| 8. Results | The best pages appear on the SERP, sometimes beside snippets, maps or an AI Overview. | What is a SERP |
The big idea
Splitting the work in two is what makes search fast. The slow jobs happen ahead of time, so the fast jobs have something ready to search.
Crawlers work around the clock, visiting new pages while revisiting old ones. Google describes crawling billions of pages with a huge set of computers, which no single search could ever wait for.
When you search, the engine only has to look up your words in its index before sorting the matches. That shortcut is why results appear in a fraction of a second.
Ranking systems put relevance to the searcher’s intent first, followed by content quality, freshness or page speed where those matter. No single signal decides the final order on its own.
The final page may be shaped by personalization, such as your location, your device or your recent search history. It can also mix in featured snippets, knowledge panels or maps when the query suits them.
Engineers often draw a far busier search engine architecture diagram, full of data centers and servers. Underneath, it still follows this same search engine workflow. For the full story behind every box, read our guide to how search engines work, or see what each part does in the components of a search engine.
Free to share
Teachers or bloggers may use the diagram for free in their own work. Please keep the credit link so readers can find the full explanation.
FAQ
Yes, you may embed or print it for free, including in lessons or slides. The only condition is a visible credit link to searchenginebasics.tech.
Yes, it does, though in a simpler form. Google itself describes three main stages, which run from crawling to serving results. This diagram splits those three into eight smaller steps so each one is easier to picture.
The core parts start with a crawler, followed by an indexer with its index. A query processor then reads each search, while a ranking system orders the results. A user interface then displays the results page.
A crawler can only visit a URL it already knows about. Discovery through links or sitemaps is the step that puts a new page on the crawler’s list.
Keep learning