Design Product Search For Vernacular And Transliterated Queries
Last updated: November 29, 2026
Quick Overview
Design a product search system where users type queries in Hindi, other Indian languages, Hinglish transliteration with inconsistent spellings ("sadi", "saari", "saree"), or speak them by voice, over a catalog whose titles are mostly short English text written by small suppliers.
Meesho
November 29, 20260
0
0 solved
Design a product search system where users type queries in Hindi, other Indian languages, Hinglish transliteration with inconsistent spellings ("sadi", "saari", "saree"), or speak them by voice, over a catalog whose titles are mostly short English text written by small suppliers.
Many Meesho users are more comfortable in their own language than in English, and search queries are short, misspelled and code-mixed while supplier-written titles are noisy. The interviewer checks query understanding, retrieval that blends lexical and semantic matching, ranking signals, and a latency budget on a cost-conscious stack.
What the Interviewer Expects
- Designs a query understanding layer: normalisation, transliteration, spell correction, intent and attribute extraction
- Combines lexical (inverted index) and semantic (embedding) retrieval
- Enriches noisy catalog titles with extracted attributes and synonyms offline
- Ranks with relevance plus conversion and quality signals
- Sets a latency budget and caching for head queries
- Evaluates with human judgements and online metrics per language
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 build the spelling and synonym dictionary without manual work for each language?
- A query like 'red kurti under 300' should apply a price filter. How is that extracted?
- How would you detect and fix null-result queries?
- How do you keep embedding retrieval fresh as new listings arrive every minute?
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
Functional: text and voice queries in many languages and scripts, autocomplete, filters (price, size, colour), results within the deliverable catalog for the user's pincode. Non-functional: p95 under ...
High-Level Design
- Query understanding service: Unicode normalisation, script detection, transliteration of Devanagari and other scripts to a canonical Latin form plus the reverse, phonetic spell correction (`sad...