How search works

Borislav Donchev

Author

Borislav Donchev

CEO & Founder of Back2Rank
Recovers websites after Google penalties, hacker attacks and failed migrations. 150+ recovered sites and 70+ removed penalties over more than 7 years. He has worked on cases where the cause of a traffic loss was an external attack, not an internal mistake.

Check out more posts

Before you type anything, a search engine has already done most of its work. It’s found pages across the web (crawling), stored and analyzed them (indexing), and prepared to put them in order the moment someone asks (serving). Google, Bing, Yandex, and Baidu each run their own version of all three. Several familiar names, including Yahoo and most of DuckDuckGo, run none of them. They license someone else’s results instead.

In plain English

A search engine is a library with no librarian you can talk to.

Someone walks the shelves of every bookstore on earth, copying down what exists. That’s crawling. Back at the library, each book gets a catalog card describing what it’s about, and duplicate copies get filed under one entry. That’s indexing. When you ask a question at the desk, the library doesn’t read the shelves. It reads the cards and hands you the five books it thinks answer you.

So a book nobody collected isn’t in the library. A book collected but never cataloged can’t be found. And a book with a card that says nothing useful will lose to one with a better card, no matter how good the book is.

Why this matters for your site

Almost every serious search problem is a stage one or stage two problem being mistaken for a stage three problem.

A business sees rankings fall, assumes competitors got better, and buys content. But if the real cause is that the server is turning the crawler away, or that an indexing rule was left on after a redesign, nothing will ever read that content. The library never collected the book. Ranking is the only stage most people can see, and the least likely place the fault actually is.

How it actually works

  • Discovery. There’s no central register of web pages, so engines have to keep looking. Google calls this URL discovery. Engines find most new pages through links from pages they already know, which is why a page with nothing pointing at it can sit unnoticed. You can also submit a sitemap, a file listing the addresses on your site that you care about.
  • Crawling. Google’s crawler is Googlebot; Bing’s is Bingbot. Both decide algorithmically what to visit and how often, and both slow themselves down on purpose to avoid overloading a server. Google also reads server responses as instructions: a repeated 500 error, meaning the server failed, tells it to back off. During the crawl it renders the page and runs the JavaScript using a recent version of Chrome. That matters, because a site that builds its content with JavaScript would otherwise look empty.
  • Indexing. The engine works out what the page is about, reading the text, the title, image alt text, and more. It also groups near-identical pages together and picks one to represent the group, called the canonical. Indexing isn’t guaranteed. Google gives the common reasons a crawled page never gets stored: low content quality, indexing rules in the page code, and site designs that are hard to process.
  • Serving. When someone searches, the engine matches the query against the index and orders what it finds. Google says relevance is decided by hundreds of factors, and that results shift with the searcher’s location, language, and device. The same query returns different results in Paris and Hong Kong by design.
  • The AI layer, sitting on top. Google says its generative AI features are built on the same core ranking systems and pull pages from the same index. It describes two mechanisms: grounding, where the model retrieves live pages from the index to base its answer on, and query fan-out, where it generates several related searches behind the scenes. To appear there, a page must first be indexed and eligible to show a normal snippet. The stages above are still the entrance.

Not only Google

StatCounter’s July 2026 worldwide figures put Google at 91.31%, Bing at 4.47%, Yahoo at 1.24%, Yandex at 1%, DuckDuckGo at 0.65%, and Baidu at 0.5%.

Those worldwide numbers hide the part that matters to you. Share by country looks nothing like share worldwide, and StatCounter publishes it country by country. If you sell into Russian-speaking or Chinese markets, the engine that matters there isn’t the one that matters globally.

There are also more engines than there are indexes. DuckDuckGo’s own help pages say it runs a crawler called DuckDuckBot and maintains its own indexes, but sources the traditional links and images largely from Bing. Yahoo’s web results also come from Bing. Being absent from Bing means being absent from more places than Bing’s own 4.47% suggests.

Where the engines genuinely differ is in what they’ll tell you. Microsoft publishes its main ranking parameters in rough order of importance: relevance, quality and credibility, user engagement, freshness, location and language, then page load time. Google publishes no ordered list at all. That’s a difference in transparency, not mechanics: both are doing the same three jobs.

What people usually get wrong

“I need to submit my site to search engines.” Google says the vast majority of pages in its results were found automatically, not submitted. Submission helps in specific cases. It isn’t the default step.

“We’re indexed, so we should be ranking.” Google lists these as separate outcomes and gives three reasons an indexed page still doesn’t appear: the content isn’t relevant to the query, the quality is low, or a rule in the page code stops it from being served.

“Each engine needs its own optimization.” Most of the work is shared, because the three stages are shared. The exception is submission and diagnosis, which are per-engine. Bing Webmaster Tools is a separate account from Google Search Console.

“AI search needs special files and formatting.” Google says that Search ignores llms.txt and similar machine-readable files, that there’s no requirement to break content into small chunks, and that AI features need no special schema markup. Keeping such a file is harmless. It just isn’t doing anything for you on Google.

What you can do about it

Search site:yourdomain.com on Google, then again on Bing. Two very different result counts point at a crawling or indexing problem on one side, not a ranking problem.

Open yourdomain.com/robots.txt in a browser. This file tells crawlers where they may go. A stray disallow rule here can hide an entire section of a site, and it’s the first thing worth ruling out.

Verify the site in both Google Search Console and Bing Webmaster Tools. Both are free, and each shows you its own engine’s view. Where the two disagree is usually worth a look.

Don’t block your CSS and JavaScript files from crawlers. Google needs the same files a browser needs to render the page as a visitor sees it.

Anything involving server configuration, redirects, or indexing rules is developer work. A misplaced rule at this level can remove a site from search results entirely, and that’s slower to undo than to cause.

Words you will hear

Crawler. A program that visits pages and copies what it finds. Also called a bot or spider.

Index. The stored database of pages an engine has analyzed and kept.

Rendering. Running a page’s code, including JavaScript, to see it the way a browser would.

robots.txt. A file at the root of a site telling crawlers which areas they may visit.

Sitemap. A file listing the addresses on your site that you want an engine to know about.

Canonical. The one page an engine picks to represent a group of near-identical pages.