How search engines discover and rank pages

A search engine answers a query in a fraction of a second, but almost none of that work happens when you type.

Illustration for the article: How search engines discover and rank pages

Updated:

A search engine answers a query in a fraction of a second, but almost none of that work happens when you type. The engine has already visited billions of pages, stored a compressed representation of each, and computed signals that let it decide which are worth showing. Understanding the three stages, crawling, indexing and ranking, makes search results easier to interpret as a reader and makes the difference between a site that is found and one that is not, for anyone who publishes.

Crawling, indexing and ranking

Crawling. Automated programs called crawlers start from known URLs and follow links, fetching pages and discovering new ones. They read robots.txt to learn which paths a site asks them to avoid, and XML sitemaps to learn which pages exist and when they changed. Crawlers have a budget per site; a large site with slow responses or endless duplicate URLs may not be fully crawled. Pages that no one links to and that appear in no sitemap may never be found at all.

Indexing. Each fetched page is parsed: the visible text is extracted, the language detected, headings and structure noted, images and links recorded, structured data (schema.org markup) read. The engine decides whether the page is a duplicate of another, which URL is canonical, and whether it is worth storing at all. Thin, repetitive or auto-generated pages are often crawled but not indexed. The result is an inverted index: for every word, a list of documents containing it, plus positional and contextual information.

Ranking. When a query arrives, the engine retrieves candidate documents from the index and orders them using hundreds of signals. Historically the dominant ones were relevance of text to the query and the number and quality of links pointing to the page. Today they include how well the page satisfies the intent behind the query, whether the content shows expertise and originality, page experience (mobile usability, loading speed, layout stability, HTTPS), freshness where it matters, and behavioural feedback from previous searchers. Machine-learning models combine these into a final order and decide which results appear as ordinary links, featured snippets, images or news.

What this means for readers

The top result is the engine’s best guess at what most people typing that query want, not a certificate of truth. Results marked “Sponsored” or “Ad” are paid placements sorted by a separate auction. Featured answers extracted from a page can be out of date or lack context; the page itself usually has the caveats. Rephrasing a query with more specific terms, adding a site name, or using quotation marks for exact phrases changes the candidate set and often surfaces better sources.

What this means for publishers

Search visibility follows from being crawlable, indexable and genuinely useful, in that order.

  • Crawlable. Every important page reachable through internal links, listed in a sitemap, not blocked by robots rules, returning fast with a 200 status.
  • Indexable. One canonical URL per piece of content, with rel="canonical" set where variants exist; unique titles and descriptions; no accidental noindex; content in the HTML rather than loaded only by scripts the crawler may not execute.
  • Useful. Original content that fully answers the question the page targets, written by someone who understands it, with clear headings, correct language declared and reasonable length. Pages that exist only to hold advertisements, or that restate what a hundred other pages already say, are indexed reluctantly and ranked poorly.
  • Trustworthy. Visible authorship, an about page, contact details, HTTPS, and no deceptive layout. These signals matter more for topics that affect health, money and safety.
  • Fast and stable. Core Web Vitals measure loading, interactivity and layout shift on real devices. Poor scores do not prevent indexing but weigh against a page in competitive results.

Helping search engines find your pages

  • Register the site with the engine’s webmaster tools (Google Search Console, Bing Webmaster Tools) to see which pages are indexed, which are excluded and why.
  • Submit a sitemap and reference it in robots.txt.
  • Write for a specific question per page and answer it completely; avoid many near-identical pages.
  • Declare the correct language, and use hreflang when the same content exists in several languages.
  • Give every image descriptive alt text; it helps accessibility and image search alike.
  • Check the site on a phone and fix anything that shifts, overlaps or is too small to tap.
  • Expect new pages to take days to weeks to appear, and rankings to settle over months.

Frequently asked questions

Can I pay to rank higher in organic results?

No. Paid results are labelled and separate. Anyone offering guaranteed organic rankings is selling something else.

Why is my page indexed but not ranking?

Because other pages are judged more relevant, authoritative or useful for that query. Compare what ranks with what you published; the gap is usually depth, originality or trust signals.

Does repeating keywords help?

Not any more, and stuffing them hurts readability and can trigger spam filters. Use natural language that covers the topic and its related terms.

Search engines reward pages that are easy to find, unambiguous to store and worth showing; the third is the hard part.

In short: Search engines crawl links and sitemaps, index the content they consider worth keeping, and rank it by relevance, quality and experience signals. For readers, results are a ranked guess, not verified fact; for publishers, technical accessibility gets a page into the index, and original, complete content gets it shown.