Search and Elasticsearch learning path

Backend engineers preparing for search or Elasticsearch interviews who want fundamentals, query craft, pitfalls and system design in order.

47 questions4 levels13 must‑knowFree, no account

Your progress

L1 · 0 of 6L2 · 0 of 18L3 · 0 of 15L4 · 0 of 8

Level 1 · 6 questions. Begin with what gets asked in the first ten minutes. Levels 2 to 4 build on it.

Start with Level 1
Level 1First ten minutesTwo-sentence answers to what gets asked first.6 questions · 2 topics
Level 2Daily jobWhat you use at work every week.18 questions · 4 topics

Facets, paging and cheap filters

  1. 2.1Write the Elasticsearch request for a product listing page with facets, sorting and pagination.Must‑know5 min
  2. 2.2What is the difference between filter and post_filter, and what does post_filter cost?3 min
  3. 2.3Why can highlighting make search slower, and how do you keep it cheap?3 min
  4. 2.4How do you write range and geo filters so they stay cheap?3 min

Query shapes that defeat the index

  1. 3.1A search query is slow even though every field is indexed. What do you check first?Must‑know3 min
  2. 3.2Why is a wildcard search that starts with an asterisk slow, and how do you fix it?Must‑know3 min
  3. 3.3Why do scripts make Elasticsearch queries slow, and what do you do instead?3 min
  4. 3.4Why do date range queries with now miss the cache, and how does rounding help?3 min
  5. 3.5How do you make prefix and autocomplete queries fast in Elasticsearch?3 min
  6. 3.6Why does searching across many fields slow Elasticsearch down, and how does copy_to help?2 min

Product search design foundations

  1. 4.1What requirements and trade-offs define a product-catalog search system?Must‑know3 min
  2. 4.2How do retrieval and ranking differ, and why separate them?Must‑know2 min
  3. 4.3Where do you cache in a product search stack, and what must stay uncached?Must‑know2 min
  4. 4.4What would you observe and alert on for a search platform?2 min
  5. 4.5How do you explain eventual consistency for price and stock in search?Must‑know2 min
Level 3SeniorProduction trade-offs and failure modes.15 questions · 3 topics

Relevance and Elasticsearch internals

  1. 1.1What is BM25, and how does it differ from TF-IDF?4 min
  2. 1.2A relevant product ranks too low or does not appear. How do you debug it?3 min
  3. 1.3Why is Elasticsearch near-real-time, and how do refresh, flush and indexing latency trade off?2 min
  4. 1.4How do shards and replicas shape query execution and latency?3 min
  5. 1.5How much heap should an Elasticsearch node get, and why does the page cache matter?3 min

Expensive listing and ranking patterns

  1. 2.1Why is deep pagination with from and size expensive, and when do you use search_after, a point in time or scroll?4 min
  2. 2.2How do you add business signals to ranking without paying for them on every match?4 min
  3. 2.3How do you show one result per product model when each colour variant is its own document?3 min
  4. 2.4How do routing and shard count affect how many shards a query touches?4 min

Designing the search system

  1. 3.1How would you separate the write model from the search read model?2 min
  2. 3.2How do you ingest product updates with CDC or application events?3 min
  3. 3.3How should the search index be designed for a multi-market catalog?3 min
  4. 3.4Walk through an end-to-end product search query pipeline3 min
  5. 3.5How do you evaluate whether search relevance actually improved?2 min
  6. 3.6How do you keep search available when queries or updates overload the cluster?2 min
Level 4InternalsHow it works underneath, and at scale.8 questions · 3 topics