Design Product Search Ranking for Google Shopping Listings

Last updated: November 29, 2026

Quick Overview

Design the ranking system for product queries in Google Shopping, where many merchants list the same item with different prices, shipping and feed quality. Results should show the right products and the best offers for each.

Google
ML System Design
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Medium

0

0

0 solved


Design the ranking system for product queries in Google Shopping, where many merchants list the same item with different prices, shipping and feed quality. Results should show the right products and the best offers for each.

Shopping ranking mixes web-style relevance with commerce signals like price competitiveness and merchant trust. Interviewers want you to separate product matching from offer selection and to handle noisy merchant feeds.

What the Interviewer Expects
  • Cluster merchant offers into canonical products
  • Rank products by relevance and quality, then select offers
  • Use purchase-intent labels such as merchant clickouts and conversions
  • Account for merchant trust, price and shipping
  • Handle attribute queries such as size, color and brand
Key Topics to Cover
Product clustering
Offer selection
Attribute extraction
Commerce ranking signals
Merchant trust
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you rank when the same product has 40 offers?
  • What do you do with a merchant feed that lists wrong prices?
  • How would you measure ranking quality when purchases happen off Google?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Queries range from broad ('running shoes') to specific ('pegasus 41 men size 10'). Inventory: billions of offers from merchant feeds, each with title, price, image, GTIN, shipping, availability. Outpu...

High-Level Design
  1. Product understanding: normalize feeds, extract attributes (brand, size, color), cluster offers into canonical products by GTIN when present, else by title and image embedding similarity.
  2. **...

Submit Your Answer
Markdown supported