Design Full-Text Search Over Years of Outlook Mailbox Email
Last updated: November 29, 2026
Quick Overview
Design search for Outlook so a user can search their own mailbox of up to a million messages and attachments by keyword, sender, date and folder, with new mail searchable within seconds.
Microsoft
November 29, 20260
0
0 solved
Design search for Outlook so a user can search their own mailbox of up to a million messages and attachments by keyword, sender, date and folder, with new mail searchable within seconds.
A scoped search question that fits a phone screen because the corpus is per user. Interviewers check whether you notice that per-mailbox indexes are a natural partition, how you keep the index fresh, and how you rank when recency matters more than term frequency.
What the Interviewer Expects
- Partitions the index per mailbox and co-locates it with mailbox data
- Indexes structured fields (from, to, date, folder, has attachment) alongside body text
- Extracts attachment text asynchronously
- Ranks with recency and sender importance, not only text relevance
- Handles deletions and moves between folders
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you make a message searchable within seconds of arrival?
- How would you support search across a shared mailbox the user has delegate access to?
- What would you cache on the client for offline search?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
One user's mailbox: up to a million items, some with large attachments. Queries combine free text with filters (from:alex budget after:2024-01-01). p95 under 300 ms. New or moved mail reflected with...
High-Level Design
Each mailbox lives on a mailbox server (database plus replicas). Next to it runs a content indexer that maintains a per-mailbox inverted index. Mail delivery writes the message, then emits a chang...