---
title: "Hybrid Search — Where Keywords Meet Vectors, Enabling Classifieds Discovery"
description: "OLX replaced a growing chain of fallback keyword-search extensions with hybrid retrieval: SOLR BM25 keyword matches plus a fixed allocation of vector-search results (embeddings from off-the-shelf mCLIP and multilingual-e5-small), capped at 1,000 ads and re-ranked by an XGBoost learning-to-rank model."
url: "https://swe.quest/articles/hybrid-search-where-keywords-meet-vectors-enabling-classifieds-discovery-0e2e686a1630040f"
canonical: "https://tech.olx.com/hybrid-search-where-keywords-meet-vectors-enabling-classifieds-discovery-b7c383fe4fc4"
source: "OLX Tech"
published: "2025-09-09"
difficulty: "medium"
kind: "Case study"
reading_minutes: 12
tags: ["search","vector-search","recommendation-systems","ecommerce"]
---

# Hybrid Search — Where Keywords Meet Vectors, Enabling Classifieds Discovery

A post on [OLX Tech](https://swe.quest/sources/olx.md), published 2025-09-09, 12 min read, Case study. Original: [https://tech.olx.com/hybrid-search-where-keywords-meet-vectors-enabling-classifieds-discovery-b7c383fe4fc4](https://tech.olx.com/hybrid-search-where-keywords-meet-vectors-enabling-classifieds-discovery-b7c383fe4fc4)

## Summary

OLX replaced a growing chain of fallback keyword-search extensions with hybrid retrieval: SOLR BM25 keyword matches plus a fixed allocation of vector-search results (embeddings from off-the-shelf mCLIP and multilingual-e5-small), capped at 1,000 ads and re-ranked by an XGBoost learning-to-rank model. Similarity scores did not separate relevant from irrelevant ads, so a global threshold was abandoned in favor of a fixed quota (raised from 35 to 70 vector results). The existing LTR model buried semantic results, so it was retrained with the query-ad similarity score as a feature, using a temporary linear re-ranker to break the cold-start data problem. A/B tests showed over 100% more seller contacts per user in the extension step, and about 3% (apps) and about 5% (mobile web) more users with successful events in the main flow.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)
- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)

## Prerequisites

- BM25 keyword search ([easy posts on Search](https://swe.quest/tags/search.md?difficulty=easy))
- text embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- learning to rank
- A/B testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

OLX, SOLR, mCLIP, multilingual-e5-small, XGBoost, BM25, Learning to Rank

## Related posts

- [Modernizing the Facebook Groups Search to Unlock the Power of Community Knowledge](https://swe.quest/articles/modernizing-the-facebook-groups-search-to-unlock-the-power-of-community-62d16e6ecf9f895a.md): Meta Engineering · 2026-04-21 · Medium · 5 min read · Search, Vector search, Recommendations & ranking, Evaluation, LLMs
  Facebook Groups scoped search moved from keyword-only retrieval to a hybrid design that runs lexical and semantic retrieval in parallel.
- [How Etsy Uses LLMs to Improve Search Relevance](https://swe.quest/articles/how-etsy-uses-llms-to-improve-search-relevance-3911d99788b5bd04.md): Etsy Code as Craft · 2026-01-16 · Medium · 10 min read · Search, LLMs, Evaluation, Model training, E-commerce
  Etsy built an LLM-powered semantic relevance framework that complements engagement signals, which favor popular listings, with judgments of how well listings match query intent across three classes: relevant, partially relevant and irrelevant.
- [Our Early Journey to Transform Instacart’s Discovery Recommendations with LLMs](https://swe.quest/articles/our-early-journey-to-transform-instacart-s-discovery-recommendations-with-llms-2b1f0ff7e32d37b4.md): Instacart Tech · 2026-02-26 · Medium · 14 min read · Recommendations & ranking, LLMs, RAG & retrieval, Evaluation, E-commerce
  Instacart rebuilt its Shopping Hub discovery recommendations around a top-down, cascaded LLM pipeline.
- [Paper Announcement: Leveraging Multimodal LLMs for Large-Scale Product Retrieval Evaluation](https://swe.quest/articles/paper-announcement-leveraging-multimodal-llms-for-large-scale-product-retrieval-f5a6b4c43b715b31.md): Zalando Engineering · 2024-11-14 · Medium · 8 min read · Evaluation, Search, LLMs, E-commerce
  Zalando uses multimodal LLMs to judge query-product relevance for search evaluation and reaches agreement comparable to human annotators on 20,000 multilingual (English and German) examples.
- [Search Quality Assurance with AI as a Judge](https://swe.quest/articles/search-quality-assurance-with-ai-as-a-judge-64fdd8c596751052.md): Zalando Engineering · 2026-03-16 · Medium · 12 min read · Search, Evaluation, LLMs, Data pipelines, E-commerce
  Zalando validated search quality for new markets (Luxembourg, Portugal, Greece) before launch by using a multimodal LLM-as-a-judge instead of manual expert review.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
