Design Query Freshness Detection for Breaking News in Google Search
Last updated: November 29, 2026
Quick Overview
When an event breaks, queries like 'earthquake' or a celebrity's name suddenly need fresh results. Design the system that detects freshness-seeking queries in real time and adjusts ranking for them.
0
0
0 solved
When an event breaks, queries like 'earthquake' or a celebrity's name suddenly need fresh results. Design the system that detects freshness-seeking queries in real time and adjusts ranking for them.
Search must react within minutes to the world, and Google interviewers like this prompt because it combines streaming signals with ranking. They check how you detect a burst, how ranking changes, and how you avoid overreacting to noise.
What the Interviewer Expects
- Detect query volume bursts relative to a baseline
- Use document-side signals such as fresh articles mentioning the entity
- Classify per query how much freshness to apply
- Adjust ranking features or blend in a news block
- Measure latency to react and false positive rate
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you tell a real event from a bot spike in query volume?
- How long should a freshness boost last?
- How do you handle events in a language with little traffic?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Goal: within 5 minutes of an event, queries about it should surface fresh coverage. Signals: query logs, new documents from crawl and news feeds, social trends. Constraint: most queries should not be ...
High-Level Design
- Query stream counters: per normalized query and per entity, counts in 1-minute windows.
- Burst detector: compares current rate to an expected rate from history (time of day, day of week)....