Skip to main content
InterviewHubPRO
Section Overview
Q50

Question 50 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

100%
Elasticsearch & Lucene (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

Hybrid Search with Reciprocal Rank Fusion (RRF): Combining BM25 keyword matching with kNN vector search scores.

senior LevelMost AskedelasticsearchAdvanced Internals

In Simple Words: Keyword search (BM25) is great for exact identifiers and domain terminology; semantic vector search is great for conceptual meaning and typo tolerance:

  • Reciprocal Rank Fusion (RRF): A state-of-the-art rank aggregation algorithm that merges the ranked lists of lexical search and dense vector kNN search without needing score normalization: $$ ext{RRF Score}(d) = sum_{m in M} rac{1}{k + r_m(d)}$$
  • Where $k$ is a constant (typically 60) and $r_m(d)$ is document rank in system $m$.
  • Guarantees top results feature items that scored strongly in both exact term matching and semantic relevance.