Problem
Lavka, a fast grocery delivery service in Russia and Israel, gets about 30% of its cart additions from search, and a session with a successful query has a 10–15% higher chance of ending in an order. Search has to respect stock per warehouse (darkstore), answer as the user types, and return categories as well as products. The first engines did not meet these needs, and relevance suffered.
Example from the article: in the home-grown engine the category "Salmon and avocado" was glued to each product, so the query "avocado" returned salmon.
Solution in brief
Lavka runs three engines, each for what it does best. Yandex Market's report engine, which understands stock, serves products behind a proxy that adds prefix completions, translation and click-model reranking. A generic full-text engine (SaaS) serves categories, and the home-grown engine is the fallback and the source of sold-out products. A client backend service picks the engine and filters results.
Questions this case answers
- How to choose and combine several retrieval engines when none of them supports a required business constraint such as per-location availability
- How to provide as-you-type search on top of a retrieval engine that only accepts complete queries
- How to keep a search index fresh when a few attributes change much faster than the rest of the catalog
- How to choose a search engine for a grocery catalog where availability differs per warehouse?
Tools and methods
- Market report engine — product search with built-in stock logic
- SaaS full-text engine — category search, typo correction
- Home-grown engine — fallback and sold-out items
- Suggester and prefix tree — completions with probabilities
- CatBoost — click probability model for reranking
- Toloka — manual relevance labeling
- YTsaurus — storage for batch catalog exports
Google or a one-time email code. No password.
