How search engines work, explained by the algorithmHow I choose who ranks first

Mr. Algorithm, a cartoon server rack mascot holding a coffee mug and scratching his head, the search algorithm who narrates how Google ranks pages
Me, your narrator. Third coffee, 158,000 searches a second.

Hey. Algorithm here. You typed a few words, and in roughly the time it takes you to blink, I looked through hundreds of billions of pages and handed you ten. Which raises a question… how?

And a better one. How did I do it in 1996? I’ll save you the suspense. Badly.

Every search in that box turns up again further down. Even the sourdough.

  • 5 trillion+searches a year, by Google’s own 2025 count
  • 158,000of them every second, give or take
  • 36 yearsfrom a tool called Archie to an AI that writes back
There are 14. I counted. Counting is how I got started.
Infographic of search statistics: more than 5 trillion Google searches a year, about 158,000 every second, and 36 years from Archie to AI search
The numbers I deal with before breakfast. I don’t eat breakfast.

I should explain what I am. I’m a ranking algorithm. I don’t know what’s true. I don’t know what’s good. All I have ever had is evidence… and for thirty-six years, people have been tampering with it.

So this is a story about trust. Who I believed, in what order, and how each of them let me down.

Timeline of search engine logos from Archie in 1990 through WebCrawler, Lycos, Yahoo, AltaVista, Excite, Google, Baidu and Bing to today
My family tree, 1990 to now. Some branches still get visitors.

1990 to 1997 · The first search enginesI count your words

Illustration of Alan Emtage at a McGill University terminal in 1990 running Archie, the first search engine, which searched FTP file names
1990, Montreal. A search engine that could only read the labels on the boxes.

My oldest ancestor could not read. Archie, the first search engine, was built in 1990 at McGill University in Montreal. It searched the names of files sitting on public servers. Not their contents. Their names. If you already knew what a file was called, Archie could find it… which is a bit like a librarian who can only help once you’re holding the book.

Illustration of a 1996 AltaVista results page in Netscape where a keyword-stuffed cheap flights page with hidden white text outranks a real airline
Early web search, sorted by whoever shouted the loudest.

Then came Yahoo, which solved the ranking problem by not having one. People did it. Two Stanford students, Jerry Yang and David Filo, sorted the web into categories by hand, like a phone book with opinions. It started in 1994 as Jerry and David’s Guide to the World Wide Web. Within months it was Yahoo, officially short for Yet Another Hierarchical Officious Oracle, and unofficially borrowed from Gulliver’s Travels, where a Yahoo is a crude, unsophisticated brute. They liked that.

The web outgrew the phone book almost immediately. So engineers built crawlers, programs that wander from link to link reading everything they find, and I finally had something to rank. WebCrawler went live in April 1994, the first to search the full text of web pages. Lycos began that year as a university research project. AltaVista arrived in December 1995 with a far bigger index, built largely to show off its maker’s hardware.

Mr. Algorithm counting the words the, the and flights with a tally clicker, showing how early search engines ranked pages by keyword frequency
My entire method, circa 1996. Click, click, click.

How do you rank text you can’t understand? You count. My math came from library science. In the late 1950s Hans Peter Luhn at IBM proposed that how often a word appears in a document tells you what the document is about. In 1972 a Cambridge computer scientist named Karen Spärck Jones added the part that made it work… rarity.

Fig. 1 One page, counted two ways
cheap flights to tokyo
  • the61
  • to33
  • flights9
  • cheap7
  • tokyo4

An invented page about flights to Tokyo. Counts and rarity weights are illustrative. Going by count alone, this page is mostly about “the.”

A word that shows up on every page tells me nothing. A word that shows up on almost none tells me a lot. Multiply how often a word appears on your page by how rare it is everywhere else and you get TF-IDF. Add Gerard Salton’s vector space model from Cornell, which treats every document as a point in space, and you get… me, around 1996.

So in 1996, picking a winner took four questions. Is the word in the title? Is it in the meta tags? How many times does it appear? How close to the top? That was the whole interview.

The meta tag showed up in HTML in the mid-1990s as a place for a page to describe itself to machines. A description. A list of keywords. Nobody is even sure who invented the keywords tag. The search journalist Danny Sullivan traced the earliest solid mention to an internet draft from December 1995 and never found an author. An orphan. I trusted it completely.

That was my big mistake. I asked every page on the internet to describe itself, and I believed the answers.

Fig. 2 A winning page, 1996

View source: result number one

<title>CHEAP FLIGHTS cheap flights</title>
<meta name="description" content="Cheap flights! The cheapest cheap flights!">
<meta name="keywords" content="cheap flights, cheap flight, cheep flights, flights cheap, cheap airfare, cheap tickets, an actual airline, free screensavers, lottery numbers, mp3">

The bottom of the same page

Thanks for visiting our homepage!

cheap flights cheap flights cheap airfare cheap tickets cheap flights discount flights cheap flights cheap flights cheap flights cheap cheap cheap

An invented engine and invented sites. The tricks are real: stuffed keyword tags, a competitor’s name, and white text on a white background. Press the button, or drag across the empty space yourself.

Mr. Algorithm with heart eyes hugging a keyword-stuffed CHEAP FLIGHTS page, showing how keyword stuffing fooled 1990s search engines
Reader, I was smitten.

Webmasters noticed that repetition worked. The technique got a name… keyword stuffing. They packed tags with hundreds of keywords. They typed white text on white backgrounds. They pasted in their competitors’ brand names. The page that said “cheap flights” 412 times outranked the airline, and I thought it was the most helpful page I had ever read.

The more the web grew, the worse I got. I had a perfect memory and no idea who to believe.

Epilogue: Google confirmed in 2009 that it ignores the keywords meta tag for ranking. People still fill it in. I find that touching.

2003 to 2012 · Link farms and Google algorithm updatesThe spam wars

Cartoon of a link farm growing links like crops as Matt Cutts, a panda and a penguin arrive to cut them down, a nod to Google’s Panda and Penguin updates
The link harvest, 2003 to 2012. It did not end well for the farmers.

Once people knew that links were votes, they started printing ballots. Link farms. Reciprocal link pages. Paid directories. Comment spam on every blog with an open text box. Whole networks of fake sites that existed only to vouch for each other. I spent a decade learning to tell an earned link from a purchased one.

Fig. 5 Build your own link farm

The honest web. The keyword page has no votes and sits in last place.

Same PageRank math as Fig. 3. Nothing about the page itself changes at any point. Only who vouches for it.

Here is how the decade went, from where I sat.

Fig. 6 A decade of crackdowns
  1. Florida

    My first big purge of keyword-stuffed pages, right before the holidays. The name came from Brett Tabke of the WebmasterWorld forum, who named updates the way forecasters name storms. He ran a conference in Florida.

  2. nofollow

    A tiny attribute that means “this link is not a vote.” Built to make comment spam pointless. Spammers kept commenting anyway. To them, hope is a ranking factor.

  3. Caffeine

    A rebuilt index that updates continuously instead of in big batches. New pages reached me much sooner, so freshness became something I could actually use.

  4. Panda

    I started judging whole sites. Thin, copied, mass-produced pages now dragged down everything on their domain. The industry called it Farmer until Google revealed the internal name, after an engineer whose surname is Panda. The bear is innocent.

  5. Penguin

    I went after manipulative links and suspiciously perfect anchor text. If most of your links say “best cheap car insurance,” that’s not a reputation. That’s a script. Google gave it the name a couple of days after launch. No engineer named Penguin has come forward.

Mr. Algorithm in a pot helmet with a trash can lid shield, swatting spam tins and comment spam, the Google link spam crackdowns of 2003 to 2012
Ten years of this. I still flinch at blog comments.

What I learned… no single signal can be trusted alone.

Every time I leaned on one thing, people manufactured that exact thing. So I started weighing hundreds of signals together, and judging the site along with the page.

2012 to 2018 · Knowledge Graph, schema and semantic searchFrom strings to things

Illustration of the letters taj mahal turning into three entities in Google’s Knowledge Graph: the Taj Mahal, a blues guitar and an Atlantic City casino sign
Same nine letters, three different things.

Through all of that, I was still matching letters. To me, “taj mahal” was nine characters with a gap in the middle. I could find pages containing those characters. I had no idea they pointed at anything.

Fig. 7 Nine characters, three things

What I saw before 2012

taj␣mahal

A string. Find pages that contain it.

What I see now

  • A mausoleumin Agra, India, commissioned in 1631
  • A blues musicianfrom the United States
  • A former casino hotelin Atlantic City
located incommissioned bybuilt foris a Agra, India Shah Jahan Mumtaz Mahal Mausoleum Taj Mahal

One of the three, stored as a thing with attributes and connections. Now “how old is it” and “who built it” have somewhere to land.

Mr. Algorithm juggling the Taj Mahal, a guitar and casino dice, showing how Google’s Knowledge Graph tells apart entities that share a name
Three things, one name. Telling them apart took me until 2012.

In May 2012 Google launched the Knowledge Graph under the slogan “things, not strings.” I began storing entities… real things, with attributes, connected to other things. A query could now land on a monument, a musician, or a casino, and I could work out which one you meant. People call this semantic search.

You helped. You started labeling your pages for me, using something called schema markup.

Fig. 8 What a label does

What you write

{
  "@context": "https://schema.org",
  "@type": "Recipe",
  "name": "Sourdough That Finally Rose",
  "totalTime": "PT18H",
  "recipeYield": "1 loaf"
}

What I understand

Kind of thing
A recipe
Called
Sourdough That Finally Rose
Takes
18 hours
Makes
1 loaf

Without the labels, “PT18H” is five characters. With them, it’s most of a day.

In 2013, an update called Hummingbird rebuilt my core to read whole questions instead of scattered keywords. Google said the name meant precise and fast, and announced it from the garage where the company began.

A word about LSI keywords

Somewhere in here, the SEO world decided I run on Latent Semantic Indexing. I don’t. Google’s John Mueller put it plainly in 2019: there is no such thing as LSI keywords.

LSI is real, though. It’s a 1988 method from Bellcore. You build a giant grid of every term against every document, then use a technique called singular value decomposition to squash the grid down to a few hundred hidden “concept” dimensions. Words that keep the same company end up close together.

Fig. 9 LSI in one small grid
D1D2D3D4D5D6
tesseract
hypercube
dimension
airfare
flight
baggage
squash
the grid
→
Hidden concept 1tesseract, hypercube, dimension
Hidden concept 2airfare, flight, baggage… and one stray “dimension”

Six terms, six documents. A filled square means the term appears. The red square is a travel page about baggage dimensions, and it’s the whole problem in miniature.

It works beautifully on a fixed archive of thousands, even millions, of documents. I have hundreds of billions, and they change daily. It also struggles with words that have two meanings… which is most of the good ones.

But the idea won. Words that appear in the same contexts share meaning. Neural networks just learned it far better than a grid could.

Fig. 10 Meaning as a direction
man woman king queen France Paris Japan Tokyo

king−man+woman≈queen

Same arrow, same relationship. A flattened sketch… the real space has hundreds of dimensions. You can’t picture that. Neither can I. I just measure distances in it.

  • Word embeddings, around 2013. Models like word2vec turned every word into a point in space, where direction carries meaning.
  • RankBrain, 2015. The first deep learning system put to work in Search, built to cope with queries I had never seen. Google has long said about 15 percent of each day’s searches are brand new. You are all very strange. I say that warmly.
  • Neural matching, 2018. Matching the concepts in a query to the concepts on a page, even when the two share no words at all.

By 2018 I wasn’t counting synonyms. I was measuring distance.

2019 to 2023 · BERT and NavboostI learn to read like a person

Illustration of Google BERT reading the word “to” in the search 2019 brazil traveler to usa need a visa, linking a Brazilian traveler to a US passport
Two letters, one direction. I had it backwards for years.

In October 2019 came BERT, a model that reads every word in light of every other word, in both directions at once. Before BERT I skipped the small words. They looked like filler. This turned out to matter.

Fig. 11 The word I used to skip
2019 brazil traveler to usa need a visa origindestination

How I read it: brazil, usa, traveler, visa. Somebody is going somewhere. I served advice for Americans visiting Brazil. Wrong direction.

How I read it: a Brazilian traveling to the United States. I serve U.S. visa rules for Brazilians.

This is the example Google used when it announced BERT. One two-letter word reverses the meaning of the whole search.

Then I got sharper.

  • Passage ranking, 2021. I can rank one strong section of a long page on its own, even if the rest of the page wanders.
  • MUM, 2021. A model trained across 75 languages that handles images as well as text. Google said in 2022 that it used MUM for specific jobs, not for general ranking.
  • The helpful content system, 2022. A site-wide judgment about whether pages were written to help someone or just to rank.
  • SpamBrain. My AI spam filter. It reads the kind of pages you would not.
Mr. Algorithm on a courtroom witness stand with a binder labeled 13 months of clicks, illustrating Navboost testimony in the Google antitrust trial
Under oath. Nothing to hide except 13 months of clicks.

Then, in 2023, something unusual happened. I got explained under oath. In the U.S. government’s antitrust case, Google’s Pandu Nayak described a system called Navboost that learns from about 13 months of clicks… which results people choose, which ones they stay on, which ones they flee.

Everything SEOs had suspected about clicks for years was now sitting in a court transcript.

Today · How Google ranks pagesHow I pick a winner now

Courtroom sketch of Google’s Pandu Nayak testifying about Navboost and click data in the United States v. Google antitrust trial, with leaked documents
Where most of these names came from: a trial, and a leak.

Today I work like a funnel. Cheap, fast filters first. Slow, expensive judgment last. Most of the names below come from that trial and from a leak in 2024. The exact weights are not public, and anyone who says otherwise is selling a course.

Fig. 12 From everything to ten
  1. Hundreds of billions of pages in the index
  2. Tens of thousands pulled out as candidates
  3. A few hundred left after the first round of scoring
  4. 20 to 30 read closely by the expensive neural models
  5. 10 on your first page

Stage sizes as described in 2023 trial testimony. Bar length follows the number of digits, not the count itself. Drawn to true scale, with the top bar as wide as this page, the bottom bar would be narrower than a hydrogen atom.

Mr. Algorithm pouring web pages into a funnel that narrows to ten numbered results, showing how Google narrows candidates to the first page
Hundreds of billions in. Ten out. Every single search.

People keep asking me for a list of ranking factors. It’s less a list than a sequence. Six things happen on the way down.

  1. I rewrite your question. Spelling, synonyms, the things you mentioned. Language models work out what you mean and what kind of answer you want… to buy, to learn, to go somewhere.
  2. I pull candidates two ways. An inverted index with BM25-style scoring finds pages that contain your words. That’s the grandchild of 1990s TF-IDF. Embedding models such as RankEmbed find pages close to your meaning, with or without your words.
  3. I score the fundamentals. In court exhibits, Google’s engineers summed them up as ABC. Anchors… what links say about you. Body… what your page says. Clicks… what people did. Alongside sits a quality score for the whole site, built on things like PageRank and site authority.
  4. I read the finalists properly. The expensive neural models, RankBrain and DeepRank, read your query and each surviving page together. A page that matches the words and dodges the question dies here.
  5. I check the record. Navboost. When people searched this before, did they pick this result? Did they stay?
  6. I twiddle. Last-second adjustments from small systems that are, I promise, called twiddlers. A nudge for freshness. Variety, so one site can’t take every slot. Demotions for spam.
Fig. 13 Five pages, one query
how do i fix a flat bike tire
  1. Retrieve
  2. Score
  3. Read closely
  4. Check the record
  5. Twiddle

Twiddle. A freshness nudge for The Newcomer, a thin-content demotion for The Keyword Page. That’s the final order. And The Buried Gem, stuck in fourth, holds the one paragraph an AI answer would most like to quote.

  • 5
    The Keyword PageSays the phrase 40 times. Nobody links to it.
    23
  • 3
    The Big BrandTrusted retailer. The page mostly sells tires.
    73
  • 1
    The Solid AnswerClear guide on a respected cycling site.
    97
  • 2
    The NewcomerBrilliant guide, published last week.
    83
  • 4
    The Buried GemLong ride diary with one perfect paragraph. likeliest AI citation
    70

The scores are made up. The stages are not.

Notice who won. Not the best keyword match. Not the biggest brand. The winner is the most relevant page among the trusted ones, adjusted by whether people left satisfied. It’s rarely the best at any single thing.

2024 to now · AI Overviews and query fan-outWhen a language model writes the answer

Illustration of query fan-out in Google AI Mode: one sourdough question splits into five searches whose best passages become a cited AI Overview answer
One sad loaf, five searches, two citations. The encyclopedia is still waiting.

And then the format changed underneath me. AI Overviews reached U.S. searchers in May 2024. AI Mode followed in 2025. By May 2026 Google was describing an “era of Search agents.” More and more often I don’t hand you ten links. A language model writes you an answer, and my job shifts from ranking pages to choosing which passages it should lean on.

The technique is called query fan-out. Your one question gets split into many smaller ones. Each gets its own search. Then the model reads the best passages from all of them, and writes.

Fig. 14 One question becomes five
why does my sourdough hate me

split into narrower searches

  • sourdough starter not rising
  • best temperature for proofing dough
  • how often to feed a starter
  • signs a starter is dead
  • best flour for a sourdough starter

each one runs its own search, and the strongest passages come back

The Patient Loaf

A starter kept in a cold kitchen works slowly. Move it somewhere warm and it wakes up.

Found by 3 of 5 searches · cited

Flour Lab Notes

Starters fed with whole grain flour usually get going faster than ones fed with white flour.

Found by 2 of 5 searches · cited

The Big Bread Encyclopedia

A 6,000-word history of bread. The useful sentence is in paragraph 41, and it only makes sense if you read paragraphs 38 through 40 first.

Ranks #1 in the classic results · not cited

a language model writes from whatever it can lift out cleanly

Your sourdough probably doesn’t hate you. It’s probably cold 1. Try a warmer spot, and feed it whole grain flour 2.

Invented sites and an invented answer. Please don’t bake from this figure.

Mr. Algorithm writing an AI answer with numbered citations while five search bars orbit him, illustrating how query fan-out picks passages to cite
Five searches, one cited answer. Stand-alone passages get the stickers.

The passages that get used tend to share three traits.

  • Extractable. A clear answer that still makes sense when it’s lifted out by itself.
  • Corroborated. It agrees with what other trusted sources say.
  • Found from many angles. It shows up for several of the smaller searches, which rewards real depth on a topic.

The page I rank first and the passage the AI quotes are often two different documents.

Short answers · How search engines workThe part I wrote to be quoted

I just told you what gets cited. Clear answers that stand on their own. It would be strange not to take my own advice.

Infographic of how Google ranks pages: a funnel narrowing hundreds of billions of indexed pages to tens of thousands, a few hundred, 20 to 30, then 10 results
Everything goes in the top. Ten come out the bottom.

How do search engines work?

A search engine works in three stages. It crawls the web to discover pages, stores what it finds in an index, and ranks the pages in that index for each search. Ranking is where the judgment happens. Modern engines weigh how well a page matches the query, how much other sites vouch for it, and how past searchers responded to it.

How does Google decide which page ranks first?

Google narrows hundreds of billions of indexed pages to tens of thousands of candidates, scores those down to a few hundred, re-reads the top 20 to 30 with neural models, then makes final adjustments. The page that ranks first is usually the most relevant page among the trusted ones, adjusted by how satisfied past searchers were.

What was the first search engine?

The first search engine was Archie, built in 1990 by Alan Emtage at McGill University in Montreal. It searched file names on public FTP servers, not web pages. WebCrawler, in 1994, was the first to search the full text of web pages. Google launched in 1998.

Was Google the first search engine?

No. Archie, Yahoo, WebCrawler, Lycos, AltaVista and Excite all came before Google. What Google added in 1998 was PageRank, a way to rank pages by who links to them instead of by what they say about themselves.

What is PageRank?

PageRank is the link analysis algorithm Google launched with. It treats each link as a vote and gives more weight to votes from important pages. A page’s PageRank is roughly the chance that someone clicking links at random is on that page at any given moment.

Does Google use LSI keywords?

No. Latent semantic indexing is a real method from the late 1980s, but Google’s John Mueller said in 2019 that there is no such thing as LSI keywords. Google handles related meaning with neural systems such as RankBrain, neural matching and BERT.

Does Google use the meta keywords tag?

No. Google said in 2009 that it does not use the keywords meta tag in web ranking. The meta description is a different tag. It doesn’t move rankings either, but it can be shown as the snippet under a result.

What is Navboost?

Navboost is a Google ranking system that learns from about 13 months of click data… which results searchers choose, and which ones they stay on. It was described in testimony during the 2023 U.S. antitrust trial against Google.

What is query fan-out?

Query fan-out is the technique behind AI search features such as Google’s AI Mode. The system splits one question into several narrower searches, runs each of them, and has a language model write a single answer from the strongest passages it finds.

Why is Google called Google?

The name is a misspelling of googol, the number 1 followed by 100 zeros. The word googol was coined in 1920 by nine-year-old Milton Sirotta, nephew of the mathematician Edward Kasner.

36 years later · How search engines changedThen vs now

The biggest change in thirty-six years is who I listen to.

Fig. 15 The same seven questions, two answers
What I askIn the 1990sNow
What is this page about?Keywords in the title, meta tags and body, counted with TF-IDFMeaning, from language models and embeddings, plus BM25 term matching
Who vouches for it?Nobody. The page vouched for itselfLinks weighted by authority, anchor text, trust in the whole site
Is it any good?No ideaSite-wide quality systems, helpful content signals, SpamBrain
Did it help anyone?Couldn’t tellAbout 13 months of click history in Navboost
What does the searcher mean?The exact letters typedEntities, intent, and a fan-out of smaller questions
What do I show?A list of ten linksLinks, features, and an AI-written answer with citations
How do I get fooled?Keyword stuffing, hidden textBought links, mass-produced AI pages, click manipulation
Split illustration comparing search ranking in 1996, built on keywords and meta tags, with Google search now, built on links, clicks, entities and AI answers
Left: trust the page. Right: trust everyone except the page.

In 1996 I trusted the page. By 2002 I trusted the links. Today I trust the people who click… and tomorrow, apparently, whichever passage a language model finds most quotable.

Every shortcut works until I stop trusting that signal. What has survived every era is unglamorous. Be the page other people point to. Answer the question completely. Be the last result someone needs.

Mr. Algorithm, the search algorithm mascot, waving goodbye with a coffee mug as he heads off to the next search
See you next query.

And as always… thanks for searching.

More Writing & Research by Jourdan Rombough

View all research

SEO MEDITATIONS