Question bank

No. 08 · Search & ranking

Design search autocomplete

Advanced40 minSearch indexing · Batch processing · Stream processing · Caching · Sharding & partitioning · Ranking

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Walkthrough reading

At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.

  1. Design Typeahead / Autocomplete

    System Design SchoolArticleFull walkthroughFreeVetted

    Full written design: trie with precomputed top-K per node, offline rebuilds swapped in atomically, prefix sharding, client debouncing and a small layer for trending terms. Personalization and typo tolerance are only mentioned.

    Link checked 2026-12-06

  2. Typeahead Suggestion + Google Search Bar | Systems Design Interview Questions With Ex-Google SWE

    Jordan has no life (YouTube)VideoFull walkthroughFreeVetted

    Long whiteboard video that weighs client-side versus server-side suggestion, walks through trie updates and talks about rebalancing hot prefix partitions. Rambling in places, but the trade-off reasoning is solid.

    Link checked 2026-12-06

  3. The Life of a Typeahead Query

    Engineering at MetaEngineering blogPartialFreeVetted

    How Facebook served typeahead in 2010: prefetching a user's connections into the browser cache, then a stateless aggregator fanning out to several prefix-matching services. Older, and about personal entities rather than global query popularity.

    Link checked 2026-12-06

  4. Suggesters (term, phrase, completion, context)

    ElasticDocsBackgroundFreeVetted

    Docs for the completion suggester and its prefix and context options. Useful if you want to propose an off-the-shelf engine instead of a custom trie; says nothing about ranking pipelines or scale.

    Link checked 2026-12-06

Report a bad or misleading link

Reference audit: 2 of 3 links from the audited catalog kept
  • medium.com/double-pointer/system-design-interview-autocomplete-type-ah Affiliate-heavy summary of the standard trie answer; the System Design School page covers the same ground more carefully.

We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.

COMPANY EVIDENCE · NOT A FREQUENCY CLAIM

Where it has been reported

Candidate reports

Catalog tags (unverified)

GoogleExpediaBloombergPinterestApple

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

From our Learn guides

Related questions