How search works
How search engines workThe five steps from discovery to rankingComponentsThe parts that make a search engine runCrawlingHow bots find and fetch your pagesIndexingHow a page gets stored so it can be foundCheck if indexedFour ways to confirm a page is on GoogleCrawling and indexing
Web crawlersGooglebot, Bingbot and the new AI botsGooglebotHow Google's crawler reads your siteRobots.txtRules, examples and a free testerXML sitemapCreate one, then submit it to GoogleCanonical tagPick the main version of a pageNoindex tagKeep a page out of search resultsRanking and results
Search engine rankingWhy one page appears above anotherGoogle ranking factorsWhat really matters, grouped simplyPageRankHow links pass value between pagesAlgorithmsTF-IDF, PageRank and modern rankingResults page (SERP)What each block on the page is forAI searchHow AI answers are built from the indexUnderstand
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 answersA search engine works in five steps. It discovers a URL, crawls the page, renders it, stores it in an index, then ranks it when someone searches. This guide walks through how search engines work step by step, with a diagram, a real example and the mistakes that stop each stage.
Search engines find pages through links and sitemaps, fetch them with a crawler, read the finished page, save its words in an index, then compare indexed pages to order results for each query. A page can only rank after it has passed every earlier step.
The process
Every search engine, from Google to a small site search, follows the same order. Each step can only work with what the previous one handed over, which is why a problem early in the chain hides a page completely.
Use Next to send one new page through all five steps, then switch on Break this step to see what happens when that step fails.
| Step | What happens | What usually stops it |
|---|---|---|
| Discovery | Links, sitemaps or redirects reveal a new URL | No page links to it and it is missing from the sitemap |
| Crawling | Googlebot or Bingbot fetches the page | A robots.txt block, a server error or a slow host |
| Rendering | JavaScript runs in a headless browser | Text that only appears after a click or a login |
| Indexing | Words, links and metadata are stored | A noindex tag, duplicate content or thin pages |
| Ranking | Hundreds of signals decide the order | Stronger pages already answer the query better |
Step 1
Before anything else can happen, the engine has to hear about your page. It has no list of every website, so it builds one by following clues.
Most new pages are found through links. When a crawler revisits a page it already knows, it reads every link on it and adds unfamiliar addresses to a queue. A homepage that links to a fresh article is the fastest way to get that article noticed.
Discovery also happens through a few other routes:
A page that nothing links to is called an orphan page. Even with a sitemap entry, orphans tend to be crawled less often, so give every important page at least one internal link.
Step 2
Crawling is the moment a bot actually visits. It behaves much like your browser does, only it reads the code instead of looking at the screen.
A crawler such as Googlebot picks a URL from its queue, checks whether it is allowed to visit, then requests the page from your server. The server replies with a status code along with the page itself. Only a successful reply lets the page move on to the next step.
Before fetching, the crawler reads your robots.txt file. A Disallow rule for a folder keeps compliant bots out of every page inside it.
A 200 code means success. A 301 sends the bot to a new address, a 404 means the page is missing, while a 5xx error says the server failed.
Engines avoid overloading a site, so they spread requests out. Large sites with slow servers may find that new pages wait longer for a visit.
Popular or frequently updated pages are revisited often. A page that rarely changes may only be fetched every few weeks.
Step 3
Many modern websites build their content with JavaScript after the page loads. Rendering is how a search engine sees that final version.
The first copy a crawler receives is often just the raw HTML. If the main text is written into that HTML, the engine can read it straight away. If the text is added later by a script, Google places the page in a rendering queue, opens it in a headless version of Chrome, then reads what appears.
Rendering costs far more computing power than reading plain HTML, so it can happen hours or days after the crawl. Content that only appears after someone clicks, scrolls or logs in may never be rendered at all, which leaves the engine with a page that looks almost empty.
A quick test: open the page, turn off JavaScript in your browser, then reload. Whatever text is still visible is what every engine can read on the first pass.
Step 4
Indexing turns a fetched page into searchable data. It is also the step where the engine decides whether the page deserves a place at all.
During indexing the engine extracts the text, splits it into words, records where each word appears, then notes the title, headings, links and images. These words go into an inverted index, a huge lookup table that lists every page containing each term. That structure is what lets an engine answer a query in a fraction of a second.
The engine also groups duplicate or near-identical pages, then picks one version as the canonical URL to show in results. Not every crawled page is kept. Google reports pages it chose to leave out in the Page indexing report inside Search Console.
| Common reason a page is not indexed | What it means |
|---|---|
| Excluded by noindex tag | The page asked to stay out of the index |
| Crawled, currently not indexed | Google fetched it but judged it not useful enough yet |
| Duplicate, Google chose a different canonical | Another URL with the same content was picked instead |
| Discovered, currently not crawled | The URL is known but has not been fetched yet |
Step 5
Ranking happens live, every time someone searches. The engine compares every indexed page that matches, then decides which order serves the searcher best.
First, retrieval pulls thousands of candidate pages from the index that contain the query terms or closely related ideas. Ranking systems then score those candidates. Google describes the main signal families as the meaning of the query, the relevance of the content, its quality, the usability of the page and the searcher’s context, such as location or language.
The highest-scoring pages appear on the search engine results page, often alongside features like featured snippets, maps, videos or an AI Overview. Our guide to search engine algorithms explains how those scoring layers work in more detail.
No public list gives exact weights for these signals, because the weights change with the query. A recipe search rewards different things than a news search.
Inside one search
Most of the work happens long before you type. The part you trigger with a search is fast because the index has already been built.
Bing follows the same overall pattern. The differences between engines come from the size of each index along with the way their ranking systems weigh signals, which is why the same query can return different results on different engines.
Troubleshooting
When a page is missing from search, find the earliest step that failed. Fixing a later step will not help if an earlier one is still broken.
| Symptom | Likely step | First check |
|---|---|---|
| The URL is unknown to Google | Discovery | Add an internal link and include the page in your sitemap |
| Search Console shows a crawl error | Crawling | Test the URL against robots.txt and confirm a 200 status |
| The cached page looks empty | Rendering | Make sure the main text is in the initial HTML |
| The page is crawled but not indexed | Indexing | Remove any noindex tag, then make the content clearly unique |
| The page is indexed but nobody finds it | Ranking | Match the search intent and answer the question near the top |
For a full walkthrough of every concept on this page, start with our search engine basics guide, which also includes live demos of the index and ranking.
FAQ
It finds pages by following links, saves a copy of what each page says in an index, then picks the most useful pages from that index whenever someone searches.
The five steps are discovery, crawling, rendering, indexing and ranking. Some guides merge rendering into crawling, which is why you will also see three or four steps described.
It can take a few hours or several weeks. Pages linked from an established site are usually found sooner, while a sitemap entry helps the engine notice the URL.
No. Crawling means fetching the page, while indexing means processing and storing it. A page can be crawled without ever being indexed.
They follow the same overall steps, yet each one runs its own crawler, index and ranking systems. That is why Google, Bing and Brave Search can show different results for the same query.
Keep learning