---
answer: direct
beat: system-design
source: 1 article · updated: August 11, 2026
---

What is an inverted index and why is it faster than scanning documents?

An inverted index maps terms to the list of document IDs containing them. Instead of scanning every document for a query term (linear in corpus size), you look it up once in the index and get all matching documents instantly—O(log terms) to find the term, plus one disk seek to read the posting list.

Answered in

The Inverted Index

A sorted dictionary mapping terms to document IDs. Transform search from O(corpus size) to O(1) lookup, enabling full-text search at scale.

Crashtech Editorial August 11, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.