KatInterview

Building Search for a Mobile App Marketplace

Machine LearningModel answer
MediumModel answerMachine Learningsearchrankingml-system-design

Last updated

Design an end-to-end search system for a mobile app marketplace covering retrieval, ranking, personalization, cold start, abuse prevention, experimentation, and the path from heuristics to learned ranking.

You are asked to design the search feature of a mobile app marketplace, where people look for apps to install on their phones. Queries are short: a category-style phrase such as "photo editor", a need such as "budget tracker", or the exact name of an app. Results must be relevant and must come back quickly.

Walk through your design and cover each of these areas:

  • Product requirements and how you would measure success
  • Understanding the query (intent, normalization, expansion)
  • Ingesting app metadata and building the index
  • Retrieving candidates and ranking them
  • Personalization
  • Typos, synonyms, and queries in multiple languages
  • Cold start for newly published apps
  • Protection against abuse and spam
  • Online experiments and production monitoring
  • A realistic path from a rule-based ranker to a learned one

State your scale assumptions explicitly and discuss the trade-offs behind your choices.

Hints

Hint 1

Start by separating query intents (exact app name vs. category vs. feature request). A strong rule for exact-name matches does a lot of the work for perceived quality.

Hint 2

Use a multi-stage funnel: several cheap retrieval sources (lexical and embedding-based) feed a light ranker, then a heavier model on a few hundred candidates. Think about what each stage costs in latency.

Hint 3

Clicks are biased by position and installs can be gamed. Think about retention-aware objectives, propensity correction, exploration for new apps, and ranking-signal fraud detection.