⌘K
Flycodx

Design a Search System (Elasticsearch)

Design a Search System (Elasticsearch)

HardHLD0% accepted

Design a full-text search system for a product catalog with 100M products. Cover inverted index, TF-IDF ranking, Elasticsearch cluster architecture, real-time indexing, and query optimization.

Approach

Design search with inverted index, Elasticsearch architecture, and ranking.

Input

User searches 'wireless headphones under 2000'

Output

Elasticsearch bool query: match(wireless headphones) + range(price: 0-2000); ranked by relevance score

Scenarios & Expected Answers

Sign in to continue

Create a free account to view answers and mark progress.

  • Free forever — no credit card
  • Theory Q&A with detailed answers
  • Points, streaks & leaderboards
Auto Save On