Search Engine Basics

How Search Engines Work Step by Step

A 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.

Updated 26 Oct 20269 min readChecked against Google Search Central
Quick answer

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.

Usman AliWritten by Usman AliGrowth and SEO specialist · 7 years in SEO

The process

The Search Engine Process at a Glance

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.

Interactive · Follow one page

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.

    What the engine does

    What can go wrong

    StepWhat happensWhat usually stops it
    DiscoveryLinks, sitemaps or redirects reveal a new URLNo page links to it and it is missing from the sitemap
    CrawlingGooglebot or Bingbot fetches the pageA robots.txt block, a server error or a slow host
    RenderingJavaScript runs in a headless browserText that only appears after a click or a login
    IndexingWords, links and metadata are storedA noindex tag, duplicate content or thin pages
    RankingHundreds of signals decide the orderStronger pages already answer the query better

    Step 1

    Step 1: Discovery, How Engines Find New Pages

    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:

    • XML sitemaps. A sitemap is a file that lists the URLs you want found. Search engines read it regularly, although listing a page does not force them to index it.
    • Redirects. When an old URL points to a new one, the engine follows the redirect and learns the new address.
    • Direct submission. Google Search Console lets you request indexing for a single URL, while Bing supports the IndexNow protocol for instant notification.
    • External links. A link from another website can introduce your page before you have told any engine about it.

    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

    Step 2: Crawling, Fetching the Page

    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.

    Permission

    robots.txt decides who may enter

    Before fetching, the crawler reads your robots.txt file. A Disallow rule for a folder keeps compliant bots out of every page inside it.

    Response

    Status codes tell the bot what happened

    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.

    Pace

    Crawl budget limits the visits

    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.

    Repeat

    Pages are crawled again and again

    Popular or frequently updated pages are revisited often. A page that rarely changes may only be fetched every few weeks.

    Step 3

    Step 3: Rendering, Seeing the Finished Page

    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

    Step 4: Indexing, Storing the Page

    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 indexedWhat it means
    Excluded by noindex tagThe page asked to stay out of the index
    Crawled, currently not indexedGoogle fetched it but judged it not useful enough yet
    Duplicate, Google chose a different canonicalAnother URL with the same content was picked instead
    Discovered, currently not crawledThe URL is known but has not been fetched yet

    Step 5

    Step 5: Ranking, Ordering the Results

    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

    How Google Search Works Step by Step, in Half a Second

    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.

    1. You type a query, and Google corrects spelling while predicting what you mean.
    2. The query is split into terms, with synonyms or related phrases added where they help.
    3. Google works out the intent, such as a quick fact, a place nearby or a product comparison.
    4. Matching pages are pulled from the index, usually thousands of them.
    5. Ranking systems score each candidate using relevance, quality and usability signals.
    6. The page is assembled with organic results, ads and any helpful features, then shown to you.

    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

    Where the Process Breaks, and What to Check First

    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.

    SymptomLikely stepFirst check
    The URL is unknown to GoogleDiscoveryAdd an internal link and include the page in your sitemap
    Search Console shows a crawl errorCrawlingTest the URL against robots.txt and confirm a 200 status
    The cached page looks emptyRenderingMake sure the main text is in the initial HTML
    The page is crawled but not indexedIndexingRemove any noindex tag, then make the content clearly unique
    The page is indexed but nobody finds itRankingMatch 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

    Questions About How Search Engines Work

    How does a search engine work in simple words?

    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.

    What are the steps of a search engine?

    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.

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

    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.

    Is crawling the same as indexing?

    No. Crawling means fetching the page, while indexing means processing and storing it. A page can be crawled without ever being indexed.

    Do all search engines work the same way?

    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.

    Scroll to Top