Search and Elasticsearch learning path
Backend engineers preparing for search or Elasticsearch interviews who want fundamentals, query craft, pitfalls and system design in order.
Your progress
L1 · 0 of 6L2 · 0 of 18L3 · 0 of 15L4 · 0 of 8
Next
Level 1 · 6 questions. Begin with what gets asked in the first ten minutes. Levels 2 to 4 build on it.
Level 1First ten minutesTwo-sentence answers to what gets asked first.
How search indexes work
- 1.1What is an inverted index, and how does Lucene store it?Must‑knowReview againNext3 min
- 1.2What happens during text analysis, and why must index and query analysis match?Must‑knowReview againNext2 min
- 1.3What is the difference between query context and filter context, and why does it matter?Must‑knowReview againNext2 min
Writing a basic Elasticsearch query
- 2.1How do you structure a bool query with must, should, filter and must_not?Must‑knowReview againNext3 min
- 2.2When do you use match, match_phrase or term, and what does each cost?Must‑knowReview againNext3 min
- 2.3Should a product ID be mapped as a number or a keyword in Elasticsearch?Must‑knowReview againNext3 min
Level 2Daily jobWhat you use at work every week.
Query writing for product search
- 1.1How do you search several product fields with boosts, and when do you pick best_fields or cross_fields?Review againNext3 min
- 1.2How do you add typo tolerance without making every search slow?Review againNext3 min
- 1.3Should synonyms be applied at index time or at query time?Review againNext3 min
Facets, paging and cheap filters
- 2.1Write the Elasticsearch request for a product listing page with facets, sorting and pagination.Must‑knowReview againNext5 min
- 2.2What is the difference between filter and post_filter, and what does post_filter cost?Review againNext3 min
- 2.3Why can highlighting make search slower, and how do you keep it cheap?Review againNext3 min
- 2.4How do you write range and geo filters so they stay cheap?Review againNext3 min
Query shapes that defeat the index
- 3.1A search query is slow even though every field is indexed. What do you check first?Must‑knowReview againNext3 min
- 3.2Why is a wildcard search that starts with an asterisk slow, and how do you fix it?Must‑knowReview againNext3 min
- 3.3Why do scripts make Elasticsearch queries slow, and what do you do instead?Review againNext3 min
- 3.4Why do date range queries with now miss the cache, and how does rounding help?Review againNext3 min
- 3.5How do you make prefix and autocomplete queries fast in Elasticsearch?Review againNext3 min
- 3.6Why does searching across many fields slow Elasticsearch down, and how does copy_to help?Review againNext2 min
Product search design foundations
- 4.1What requirements and trade-offs define a product-catalog search system?Must‑knowReview againNext3 min
- 4.2How do retrieval and ranking differ, and why separate them?Must‑knowReview againNext2 min
- 4.3Where do you cache in a product search stack, and what must stay uncached?Must‑knowReview againNext2 min
- 4.4What would you observe and alert on for a search platform?Review againNext2 min
- 4.5How do you explain eventual consistency for price and stock in search?Must‑knowReview againNext2 min
Level 3SeniorProduction trade-offs and failure modes.
Relevance and Elasticsearch internals
- 1.1What is BM25, and how does it differ from TF-IDF?Review againNext4 min
- 1.2A relevant product ranks too low or does not appear. How do you debug it?Review againNext3 min
- 1.3Why is Elasticsearch near-real-time, and how do refresh, flush and indexing latency trade off?Review againNext2 min
- 1.4How do shards and replicas shape query execution and latency?Review againNext3 min
- 1.5How much heap should an Elasticsearch node get, and why does the page cache matter?Review againNext3 min
Expensive listing and ranking patterns
- 2.1Why is deep pagination with from and size expensive, and when do you use search_after, a point in time or scroll?Review againNext4 min
- 2.2How do you add business signals to ranking without paying for them on every match?Review againNext4 min
- 2.3How do you show one result per product model when each colour variant is its own document?Review againNext3 min
- 2.4How do routing and shard count affect how many shards a query touches?Review againNext4 min
Designing the search system
- 3.1How would you separate the write model from the search read model?Review againNext2 min
- 3.2How do you ingest product updates with CDC or application events?Review againNext3 min
- 3.3How should the search index be designed for a multi-market catalog?Review againNext3 min
- 3.4Walk through an end-to-end product search query pipelineReview againNext3 min
- 3.5How do you evaluate whether search relevance actually improved?Review againNext2 min
- 3.6How do you keep search available when queries or updates overload the cluster?Review againNext2 min
Level 4InternalsHow it works underneath, and at scale.
Lucene internals
- 1.1How do you evaluate Boolean AND and OR over postings lists?Review againNext3 min
- 1.2What is an FST, and why does Lucene use one for the terms dictionary?Review againNext2 min
- 1.3How do you return the top K results without scoring and sorting every match?Review againNext2 min
- 1.4What is a Lucene segment, and how do updates, deletes and merges work?Review againNext2 min
Cluster-level query cost
- 2.1What makes sorting expensive in Elasticsearch, and how can index sorting help?Review againNext3 min
- 2.2Why are terms aggregation counts approximate, and how do you trade accuracy against cost?Review againNext4 min
- 2.3How do the node query cache and the shard request cache work, and how do you write queries that hit them?Review againNext3 min
Scaling product search
- 3.1How would you scale product search across regions and large catalogs?Review againNext2 min
Each card is a topic. Columns go from Level 1 to Level 4; the outlined card is where you are.