Interactive R&D Experiment

Hybrid Search Visualizer.

A live laboratory comparing Okapi BM25 lexical matching against Dense Vector kNN semantic search, and fusing both with Reciprocal Rank Fusion (RRF) as built for e-commerce catalog search on Solr 9.

Solr 9 Hybrid Search & RRF Engine

In-process BM25 lexical retriever + ONNX Dense Vector kNN + Reciprocal Rank Fusion

Read the write-up
Failure Modes & Edge Cases
Solr NLU Query UnderstandingIntent: Aquatic / Marine intent
Synonyms: waterproof → [diver, water resistance, swim]
Interactive Fusion ParametersMoving sliders re-computes Reciprocal Rank Fusion instantly
(Standard: 60)

Balanced K (60): Standard Cormack baseline, gracefully merges both candidates.

50% Lexical / 50% Vector

Balanced 50/50: Production default without score calibration issues.

(Candidates)

Number of candidates fetched from each retriever before fusion.

1. BM25 Keyword

Lexical

Exact token matching via TF/IDF and Solr edismax field weights.

#1Heritage Chronograph with Vintage Brown Leather Strap
CR4835 · ₹11,495BM25: 9.19
chronograph (tf:2)with (tf:3)brown (tf:3)leather (tf:3)strap (tf:2)
#2HydroSport Pro 200M Waterproof Diver Chronograph
SP8820 · ₹9,999BM25: 3.809
waterproof (tf:2)chronograph (tf:2)with (tf:1)
#3Classic Roman Dial Rose Gold & Navy Watch
CR4991 · ₹12,495BM25: 2.912
with (tf:1)leather (tf:2)strap (tf:1)
#4Solstice Chronograph Amber Dial Stainless Steel
CR6012 · ₹12,995BM25: 2.269
chronograph (tf:3)with (tf:1)
#5Urban Comfort Everyday Canvas Field Watch
LX7700 · ₹1,899BM25: 1.66
strap (tf:1)
#6Minimalist Three-Hand Slim Leather Watch
CR5380 · ₹6,995BM25: 1.572
with (tf:1)leather (tf:3)

2. Dense Vector kNN

Semantic

all-MiniLM-L6-v2 ONNX 384-dim concept embeddings + live Cosine Similarity.

#1Sport Pulse Active Silicone Digital Watch
JK1040 · ₹2,999Cosine: 0.671
Diver/WaterproofSport/Chrono
#2HydroSport Pro 200M Waterproof Diver Chronograph
SP8820 · ₹9,999Cosine: 0.667
Diver/WaterproofSport/ChronoSteel
#3AquaMaster Titanium 300M Deep Sea Dive Watch
SP9100 · ₹15,999Cosine: 0.612
Diver/WaterproofSport/ChronoSteel
#4Urban Comfort Everyday Canvas Field Watch
LX7700 · ₹1,899Cosine: 0.54
Leather
#5Heritage Chronograph with Vintage Brown Leather Strap
CR4835 · ₹11,495Cosine: 0.498
MechanicalLeather
#6Solstice Chronograph Amber Dial Stainless Steel
CR6012 · ₹12,995Cosine: 0.426
Steel

3. Reciprocal Rank Fusion

Fused Output

Reranked via rank reciprocals: Σ w / (K + rank).

#1HydroSport Pro 200M Waterproof Diver Chronograph Both
SP8820 · ₹9,999RRF: 0.01613
Formula: 0.5/(60+2) + 0.5/(60+2) = 0.01613
Consensus match Promoted +1 rank
#2Heritage Chronograph with Vintage Brown Leather Strap Both
CR4835 · ₹11,495RRF: 0.01589
Formula: 0.5/(60+1) + 0.5/(60+5) = 0.01589
Consensus match
#3Urban Comfort Everyday Canvas Field Watch Both
LX7700 · ₹1,899RRF: 0.01550
Formula: 0.5/(60+5) + 0.5/(60+4) = 0.01550
Consensus match Promoted +1 rank
#4Solstice Chronograph Amber Dial Stainless Steel Both
CR6012 · ₹12,995RRF: 0.01539
Formula: 0.5/(60+4) + 0.5/(60+6) = 0.01539
Consensus match
#5Sport Pulse Active Silicone Digital Watch
JK1040 · ₹2,999RRF: 0.00820
Formula: 0.5/(60+1) (Vector only)
Vector only
#6Classic Roman Dial Rose Gold & Navy Watch
CR4991 · ₹12,495RRF: 0.00794
Formula: 0.5/(60+3) (BM25 only)
BM25 only

Under the Hood: Solr 9 & .NET Architecture