The problem
A large marketplace contains millions of products and offers across highly diverse categories. Customer-interaction signals are extremely sparse: many offers receive no orders, while a relatively small subset accounts for most engagement. The platform needed to identify and rank products that are relevant and commercially valuable across search results, category listings and recommendation placements. Training directly on the full population of approximately 60 million historical offers would produce a dataset dominated by inactive, zero-order products.
What was built
The team built a feature-processing and modeling layer that forecasts product engagement and supports ranking. Popularity forecasts are produced at offer and product-family level, with separate predictions for expected orders and page views, so the same features serve search, listing and recommendation use cases.
Inputs include historical orders and page views, price and vendor information, category and product-family attributes, offer availability, search and browsing interactions, and calendar and recency features. Category-aware stratified sampling builds more representative training datasets while preserving differences between categories.
Ranking is split into two stages:
- Candidate retrieval: Solr identifies a broad set of potentially relevant products
- Machine-learning ranking: candidates are reordered using product, query-product and contextual features
The ranking objective is based on relevance metrics such as Normalized Discounted Cumulative Gain. Offline evaluation identified promising configurations, which then went to production A/B tests to confirm customer and commercial impact.
Results
The project delivered a scalable framework for improving product discovery across multiple customer-facing surfaces. Popularity features are shared across search, listing and recommendations, and sparse behavioral signals are put to better use. Because candidate retrieval is separate from ranking, each layer can be optimized independently. The wider learning-to-rank environment involved millions of search sessions and training datasets ranging from hundreds of millions to approximately one billion rows.
Where it applies
The same design applies to large-scale ranking and recommendation systems with sparse targets, from distributed feature engineering and candidate generation to learning-to-rank objectives and online experimentation.