Sub topic 3
How Pages Get Crawled and Indexed
Assume you understand basic web search, HTML, and HTTP requests. You should also know that a language model generates text from patterns, while a search index stores information about web pages for later retrieval.
Before an answer engine can cite a page, the page usually must be discoverable, fetched, and added to an index. An index is a database of web documents and signals about them, such as words, links, dates, language, and page relationships.
From URL discovery to an index entry
A crawler, also called a search bot, discovers URLs in several ways:
- It follows links from pages that it already knows.
- It reads XML sitemaps published by a site.
- It receives URL-submission or freshness notifications.
- It revisits URLs that were previously indexed.
The crawler then requests the page over HTTP. The response status, headers, HTML, redirects, and access rules all affect what happens next.
curl -I https://www.example.com/guideA successful 200 OK response means the server returned content. It does not guarantee indexing. A 301 or 308 redirect tells the crawler to use another URL. A 404 means the resource was not found, while a 5xx response suggests a temporary server failure.
The crawler may parse the returned HTML and render JavaScript when necessary. Important content that appears only after a client-side request can be delayed or missed if rendering is unavailable, slow, or blocked. Server-rendered HTML is usually easier for crawlers to process.
The crawler also checks signals such as:
robots.txt, which can restrict crawling.- A
noindexdirective, which asks an indexer not to include the page. - Canonical metadata, which identifies the preferred URL among duplicates.
- Internal links, which help establish the page's relationship to the rest of the site.
- Sitemaps, which identify URLs and may include modification times.
What indexing stores
Indexing is more than saving a copy of the page. The indexing system analyzes the document and may store:
- Extracted text and separate passages.
- The page title, headings, author, and metadata.
- Links and anchor text.
- Publication and modification dates.
- Language, topic, and content type.
- Duplicate and canonical-URL relationships.
The resulting index may support both whole-page ranking and passage-level retrieval. An answer engine can therefore select one section of a page instead of using the page as a single indivisible result.
Crawl scheduling and freshness
Crawlers do not request every page continuously. They prioritize pages based on factors such as site reliability, page importance, observed change frequency, and available crawl capacity. A sitemap helps discovery, but its lastmod value should reflect a real content change rather than every deployment.
A page's index entry can become stale when its source changes after the last crawl. Search systems may detect the change through normal revisits, sitemap processing, or update notifications. Different answer engines use different indexes and update schedules, so a change may appear in one service before another.
Exercise
Exercise
A page returns 200 OK and appears in a sitemap, but an answer engine never cites it. What conclusion is justified?
Show answer
The page is discoverable and apparently fetchable, but those facts do not prove that it was indexed, retrieved for the question, or selected as a citation.