hard

Design Google Search

Develop a search engine system that can efficiently index billions of web pages, process complex search queries, and return relevant and accurate search results almost instantaneously. The system should be scalable to accommodate the continuously growing size of the web and capable of updating its indices in real-time or near-real-time to reflect the latest content.

Suggested time: 45 minutes

Loading the workspace...

About this problem

Design a search engine that returns 10 relevant results from 100 billion web pages in under 200ms. The core challenge is a multi-stage ranking pipeline: cheap boolean retrieval narrows billions to thousands, BM25 scoring picks candidates, then a neural model re-ranks the final set.

What your design needs to cover

  • Keyword search across billions of web pages

  • Results ranked by relevance

  • Snippet generation

  • Pagination

  • Spell correction

  • Autocomplete suggestions

Key challenges the editorial covers

Learn from other designs

Related problems

Guides

Asked in these interview guides

Company guides that list this problem among their sample questions.