Swiggy Improves Search Autocomplete Using Real Time Machine Learning Ranking

TL;DR · AI 摘要
Swiggy improves search autocomplete using real-time machine learning ranking by integrating dynamic data processing and adaptive algorithms.
核心要点
- Swiggy improves search autocomplete with real-time machine learning.
- The integration of dynamic data processing enhances user experience through adap
- Real-time machine learning is crucial for optimizing search results.
结构提纲
按章节快速跳转。
思维导图
用一张图看清主题之间的关系。
查看大纲文本(无障碍 / 无 JS 友好)
- Swiggy Improves Search Autocomplete Using Real Time Machine Learning Ranking
- 核心机制
- 实时数据处理和自适应算法
金句 / Highlights
值得收藏与分享的关键句。
Swiggy improves search autocomplete with real-time machine learning.
Swiggy Improves Search Autocomplete Using Real Time Machine Learning Ranking - InfoQ
[BT](https://www.infoq.com/int/bt/ "bt")
InfoQ Software Architects' Newsletter
A monthly overview of things you need to know as an architect or aspiring architect.
Enter your e-mail address
Select your country - [x] I consent to InfoQ.com handling my data as explained in this Privacy Notice.
Close
Live Webinar and Q&A: Rethinking AppSec: Why Compiler‑Level Security Changes the Architecture Conversation (Jun 11, 2026)Save Your Seat
Close
Toggle Navigation
Facilitating the Spread of Knowledge and Innovation in Professional Software Development
English edition
[Write for InfoQ](https://www.infoq.com/write-for-infoq/ "Write for InfoQ")
Search
Unlock the full InfoQ experience
Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources.
or
Don't have an InfoQ account?
- Stay updated on topics and peers that matter to youReceive instant alerts on the latest insights and trends.
- Quickly access free resources for continuous learningMinibooks, videos with transcripts, and training materials.
- Save articles and read at anytimeBookmark articles to read whenever youre ready.
NewsArticlesPresentationsPodcastsGuides
Topics
[Development](https://www.infoq.com/development/ "Development")
- [Java](https://www.infoq.com/java/ "Java")
- [Kotlin](https://www.infoq.com/kotlin/ "Kotlin")
- [.Net](https://www.infoq.com/dotnet/ ".Net")
- [C#](https://www.infoq.com/c_sharp/ "C#")
- [Swift](https://www.infoq.com/swift/ "Swift")
- [Go](https://www.infoq.com/golang/ "Go")
- [Rust](https://www.infoq.com/rust/ "Rust")
- [JavaScript](https://www.infoq.com/javascript/ "JavaScript")
Featured in Development
Dany Lepage discusses the architectural journey of porting a hit VR title to seven non-VR platforms. He explains how his team solved the challenges of cross-progression, diverse input paradigms, and maintaining release velocity across Steam, iOS, and PlayStation. Beyond the tech, he shares candid lessons on the "product fit" gap when translating immersive social presence to 2D screens.

All in developmentFollow Topic
[Architecture & Design](https://www.infoq.com/architecture-design/ "Architecture & Design")
- [Architecture](https://www.infoq.com/architecture/ "Architecture")
- [Enterprise Architecture](https://www.infoq.com/enterprise-architecture/ "Enterprise Architecture")
- [Scalability/Performance](https://www.infoq.com/performance-scalability/ "Scalability/Performance")
- [Design](https://www.infoq.com/design/ "Design")
- [Case Studies](https://www.infoq.com/Case_Study/ "Case Studies")
- [Microservices](https://www.infoq.com/microservices/ "Microservices")
- [Service Mesh](https://www.infoq.com/servicemesh/ "Service Mesh")
- [Patterns](https://www.infoq.com/DesignPattern/ "Patterns")
- [Security](https://www.infoq.com/Security/ "Security")
Featured in Architecture & Design
- #### Context is the Key to the Agentic Architecture Revolution: A Conversation with Baruch Sadogursky
Michael Stiefel spoke to Baruch Sadogursky about software architecture in the age of agentic AI. LLM can function, albeit stochastically, as reasoning machines capable of interpreting human ambiguity. With the appropriate rigorous context artifacts to control the LLM’s reasoning, software specifications can become the source of truth, while the code becomes a disposable intermediate language.

All in architecture-designFollow Topic
[AI Infrastructure](https://www.infoq.com/ai-ml-data-eng/ "AI Infrastructure")
- [Big Data](https://www.infoq.com/bigdata/ "Big Data")
- [Machine Learning](https://www.infoq.com/machinelearning/ "Machine Learning")
- [NoSQL](https://www.infoq.com/nosql/ "NoSQL")
- [Database](https://www.infoq.com/database/ "Database")
- [Data Analytics](https://www.infoq.com/data-analytics/ "Data Analytics")
- [Streaming](https://www.infoq.com/streaming/ "Streaming")
Featured in AI, ML & Data Engineering
We wanted to expose a B2B intelligence platform built on more than one million company profiles to an LLM client through an MCP server so a user can ask “find SaaS companies in Germany with 50-200 employees” and receive results through the LLM client. The engineering problem was: How do you make that workflow useful without creating an unsafe bridge between an LLM and production data?

All in ai-ml-data-engFollow Topic
[Culture & Methods](https://www.infoq.com/culture-methods/ "Culture & Methods")
- [Agile](https://www.infoq.com/agile/ "Agile")
- [Diversity](https://www.infoq.com/diversity/ "Diversity")
- [Leadership](https://www.infoq.com/leadership/ "Leadership")
- [Lean/Kanban](https://www.infoq.com/lean/ "Lean/Kanban")
- [Personal Growth](https://www.infoq.com/personal-growth/ "Personal Growth")
- [Scrum](https://www.infoq.com/scrum/ "Scrum")
- [Sociocracy](https://www.infoq.com/sociocracy/ "Sociocracy")
- [Software Craftmanship](https://www.infoq.com/software_craftsmanship/ "Software Craftmanship")
- [Team Collaboration](https://www.infoq.com/team-collaboration/ "Team Collaboration")
- [Testing](https://www.infoq.com/testing/ "Testing")
- [UX](https://www.infoq.com/ux/ "UX")
Featured in Culture & Methods
Stéphane Di Cesare and Cat Morris share how engineers can move from being a "cost center" to a value driver using product discovery. They explain the "Double Diamond" framework and why identifying user problems must precede building solutions. Learn to choose the right metrics, build customer empathy through shadowing, and use business context to maximize the impact of your technical work.

All in culture-methodsFollow Topic
- [Infrastructure](https://www.infoq.com/infrastructure/ "Infrastructure")
- [Continuous Delivery](https://www.infoq.com/continuous_delivery/ "Continuous Delivery")
- [Automation](https://www.infoq.com/automation/ "Automation")
- [Containers](https://www.infoq.com/containers/ "Containers")
- [Cloud](https://www.infoq.com/cloud-computing/ "Cloud")
- [Observability](https://www.infoq.com/observability/ "Observability")
Featured in DevOps
Daniele Frasca explains the architectural evolution of Joyn, a German streaming giant. He discusses moving from fragile single-node setups to resilient serverless architectures using AWS. He shares insights on the Hub and Spoke pattern for data consistency, cell-based isolation to reduce blast radius, and cost-optimization strategies for achieving affordable multi-region active-active setups.

All in devopsFollow Topic
[Events](https://events.infoq.com/ "Events")
Helpful links
- [About InfoQ](https://www.infoq.com/about-infoq "About InfoQ")
- [InfoQ Editors](https://www.infoq.com/infoq-editors "InfoQ Editors")
- [Write for InfoQ](https://www.infoq.com/write-for-infoq "Write for InfoQ")
- [About C4Media](https://c4media.com/ "About C4Media")
- [Diversity](https://c4media.com/diversity "Diversity")
Choose your language

[InfoQ Homepage](https://www.infoq.com/ "InfoQ Homepage")[News](https://www.infoq.com/news "News")Swiggy Improves Search Autocomplete Using Real Time Machine Learning Ranking
[Architecture & Design](https://www.infoq.com/architecture-design/ "Architecture & Design")
Shipping Faster, Breaking More: Rethinking Delivery Systems in the Age of AI (Webinar May 28th)
Swiggy Improves Search Autocomplete Using Real Time Machine Learning Ranking
May 18, 2026 2 min read
by
- Leela Kumili
Follow Lead Engineer
#### Write for InfoQ
Feed your curiosity.Help 550k+ global
senior developers
each month stay ahead.Get in touch
Log in to listen to this article
Loading audio
0:00 0:00
Normal 1.25x 1.5x
Like
Swiggy detailed the architecture of the company's real-time machine-learning ranking system for autocomplete search suggestions, describing how the platform combines OpenSearch retrieval, feature stores, and learning-to-rank models while operating under strict latency requirements. The system replaced a hand-tuned heuristic ranking approach with a learned ranking model running directly inside OpenSearch, avoiding additional services or network hops while improving autocomplete relevance.
According to the company, autocomplete requests are particularly sensitive to latency because every keystroke can trigger a new search query. Traditional autocomplete systems, therefore, tend to rely on lexical matching and static ranking rules optimized for speed. Swiggy's newer approach separates the workflow into two stages: candidate generation and ranking.
When a user begins typing, the system first retrieves a broad set of candidate suggestions using OpenSearch lexical retrieval combined with embedding-based similarity search. This retrieval layer is optimized for recall and fast response times. The candidate suggestions are then passed into a ranking layer where machine learning models reorder results based on predicted relevance.
The ranking system incorporates real-time signals such as user interaction history, click behavior, query context, and item popularity. These features are combined with offline-trained models that are deployed for online inference. A feature store is used to serve both precomputed and streaming features, enabling the system to avoid expensive real-time computations while still reacting to recent user behavior. The ranking layer is built using a learning to rank approach integrated with OpenSearch, typically implemented using frameworks such as OpenSearch LTR, with model families like RankLib and gradient boosted tree methods such as XGBoost used for ranking and re-ranking tasks.
The autocomplete platform also includes a continuous feedback loop that retrains ranking models using live user interaction data. Click-through rates, conversions, and ordering behavior are streamed into offline training pipelines where updated ranking models are generated and stored in a model registry before deployment into the online ranking service.
/filters:no_upscale()/news/2026/05/swiggy-autocomplete-rt-ranking/en/resources/1swiggyranking-1778975637105.jpeg)
_Typical ML ranking service vs OpenSearch LTR latency (Source: Swiggy Blog Post)_
The architecture is designed to operate under strict performance requirements. Autocomplete requests are highly interactive and require low-latency responses, which leads to design choices that favor lightweight models and optimized inference paths. Rather than relying on complex deep models in the online path, the system balances model complexity with serving efficiency to maintain responsiveness at scale.
/filters:no_upscale()/news/2026/05/swiggy-autocomplete-rt-ranking/en/resources/1Screenshot%202026-05-16%20at%204.53.26%E2%80%AFPM-1778975637105.png)
Training and deployment setup for the Autocomplete ML model using Opensearch LTR _(Source: Swiggy Blog Post)_
The system also includes a feedback loop where user interactions are continuously collected and used to improve ranking models. Click-through rates and conversion signals are fed into offline training pipelines, enabling models to adapt to evolving user behavior and emerging query patterns. This enables the autocomplete system to adapt to new trends without manual rule updates.
According to Swiggy’s engineers, the design integrates machine learning into a traditionally rule and retrieval-driven component without compromising latency. The separation of candidate generation and ranking allows each stage to be independently optimized, while the use of feature stores and streaming pipelines ensures consistency between training and serving environments.
About the Author

#### Leela Kumili
Leela is a Lead Software Engineer at Starbucks with deep expertise in building scalable, cloud-native systems and distributed platforms. She drives architecture, delivery, and operational excellence across the Rewards Platform, leading efforts to modernize systems, improve scalability, and enhance reliability. In addition to her technical leadership, Leela serves as an AI Champion for the organization, identifying opportunities to improve developer productivity and workflows using LLM-based tools and establishing best practices for AI adoption. She is passionate about building production-ready systems, enhancing developer experience, and mentoring engineers to grow in both technical and strategic impact. Her interests include platform engineering, distributed systems, developer productivity, and bridging technical solutions with business and product goals.
Show more Show less
#### This content is in the Machine Learning topic
Follow Topic
##### Related Topics:
Followers: 4100
Follow Topic
Followers: 10236
Follow Topic
Followers: 11
Follow Topic
Followers: 372
Follow Topic
Followers: 35
Follow Topic
Followers: 688
Follow Topic
Followers: 20
Follow Topic
Followers: 14481
Follow Topic
Followers: 16
Follow Topic
Followers: 0
Follow Topic
Followers: 28
Follow Topic
* #### Popular in Architecture & Design
* #### Related Sponsors
* #### Related Sponsor

- May 28, 2026, 1 PM EDT
##### Shipping Faster, Breaking More: Rethinking Delivery Systems in the Age of AI
SPONSORED BY HARNESS Save your seat
Related Content
May 11, 2026
Feb 02, 2026 
Dec 17, 2025 
May 15, 2026
May 04, 2026
Apr 20, 2026 
Mar 31, 2026 
Dec 08, 2025 
May 11, 2026 
Related Sponsors
- [![Image 24: [eBook] The State of the Kubernetes Ecosystem](https://imgopt.infoq.com/fit-in/250x320/filters:quality(80)/sponsorship/rsc/46f97eef-a68e-47b6-a42b-62cc5e253083/cover/HarnessRSCStateKubernetes-1776926738184.jpg)](https://www.infoq.com/vendorcontent/show.action?vcr=46f97eef-a68e-47b6-a42b-62cc5e253083&pageType=NEWS_PAGE&vcrPlace=TS_SPONSORED_CONTENT_TOP)#### [[eBook] The State of the Kubernetes Ecosystem](https://www.infoq.com/vendorcontent/show.action?vcr=46f97eef-a68e-47b6-a42b-62cc5e253083&pageType=NEWS_PAGE&vcrPlace=TS_SPONSORED_CONTENT_TOP)
Kubernetes (K8s) has become the de facto standard platform for container orchestration and market adoption is strong. In this eBook you will learn about the K8s architecture, options for running K8s across a host of environments, key open source projects in the K8s ecosystem, and more.
- #### Architecture Beyond the Diagram: Decisions, Systems, and the Forces That Shape Them - Download the InfoQ eMag
This eMag analyzes modern architecture: from holistic system design and resilient mission-critical platforms to decentralized governance. Explore micro-frontend sociotechnical shifts and patterns for scaling event-driven systems across multi-cloud.
- Sponsored by

Related Content
May 07, 2026
May 05, 2026
May 01, 2026
Apr 28, 2026
Apr 25, 2026
Apr 23, 2026 
**The InfoQ** Newsletter
A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example
Enter your e-mail address
Select your country - [x] I consent to InfoQ.com handling my data as explained in this Privacy Notice.
- ##### [Cloudflare and Stripe Let AI Agents Create Accounts, Buy Domains, and Deploy to Production](https://www.infoq.com/news/2026/05/cloudflare-stripe-agent-commerce/ "Cloudflare and Stripe Let AI Agents Create Accounts, Buy Domains, and Deploy to Production")
- ##### [Google Introduces Cloud Fraud Defense as Successor to reCAPTCHA](https://www.infoq.com/news/2026/05/cloud-fraud-defense-recaptcha/ "Google Introduces Cloud Fraud Defense as Successor to reCAPTCHA")
- ##### [Anthropic Traces Six Weeks of Claude Code Quality Complaints to Three Overlapping Product Changes](https://www.infoq.com/news/2026/05/anthropic-claude-code-postmortem/ "Anthropic Traces Six Weeks of Claude Code Quality Complaints to Three Overlapping Product Changes")
- ##### [Swiggy Improves Search Autocomplete Using Real Time Machine Learning Ranking](https://www.infoq.com/news/2026/05/swiggy-autocomplete-rt-ranking/ "Swiggy Improves Search Autocomplete Using Real Time Machine Learning Ranking")
- ##### [Context is the Key to the Agentic Architecture Revolution: A Conversation with Baruch Sadogursky](https://www.infoq.com/podcasts/context-key-agentic-architecture-revolution/ "Context is the Key to the Agentic Architecture Revolution: A Conversation with Baruch Sadogursky")
- ##### [Cloudflare Introduces Workflows V2 with Deterministic Execution and 50K Concurrent Workflows](https://www.infoq.com/news/2026/05/cloudflare-workflows-v2-release/ "Cloudflare Introduces Workflows V2 with Deterministic Execution and 50K Concurrent Workflows")
- ##### [Product Thinking for Cloud Native Engineers](https://www.infoq.com/presentations/product-cloud-native/ "Product Thinking for Cloud Native Engineers")
- ##### [Accelerating LLM-Driven Developer Productivity at Zoox](https://www.infoq.com/presentations/ai-software-development/ "Accelerating LLM-Driven Developer Productivity at Zoox")
- ##### [Scaling Social Systems in Software Organizations](https://www.infoq.com/news/2026/05/scale-social-system-software-org/ "Scaling Social Systems in Software Organizations")
- ##### [Anthropic's Code With Claude Announces Managed Agents, Proactive Workflows, Capability Curve](https://www.infoq.com/news/2026/05/code-with-claude/ "Anthropic's Code With Claude Announces Managed Agents, Proactive Workflows, Capability Curve")
- ##### [Building a Secure MCP Server on AWS for a Million-Company B2B Platform](https://www.infoq.com/articles/secure-mcp-server-aws/ "Building a Secure MCP Server on AWS for a Million-Company B2B Platform")
- ##### [OpenAI Open-Sources Symphony, a SPEC.md for Autonomous Coding Agent Orchestration](https://www.infoq.com/news/2026/05/openai-symphony-agents/ "OpenAI Open-Sources Symphony, a SPEC.md for Autonomous Coding Agent Orchestration")
- ##### [Ubuntu Embraces Local AI instead of Cloud-First OS Integration](https://www.infoq.com/news/2026/05/ubuntu-on-device-ai/ "Ubuntu Embraces Local AI instead of Cloud-First OS Integration")
- ##### [Discord Reveals How a Hidden Circular Dependency Triggered Its March Voice Outage](https://www.infoq.com/news/2026/05/discord-circular-dependency/ "Discord Reveals How a Hidden Circular Dependency Triggered Its March Voice Outage")
- ##### [Benchmarking AI Agents on Kubernetes](https://www.infoq.com/news/2026/05/ai-agents-kubernetes-rag/ "Benchmarking AI Agents on Kubernetes")
**The InfoQ** Newsletter
A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example
- Get a quick overview of content published on a variety of innovator and early adopter technologies
- Learn what you don’t know that you don’t know
- Stay up to date with the latest information from the topics you are interested in
Enter your e-mail address
Select your country - [x] I consent to InfoQ.com handling my data as explained in this Privacy Notice.
#### Events
- ##### QCon AI Boston
June 1-2, 2026
June 10, 2026
July 25, 2026
- ##### QCon San Francisco
November 16-20, 2026
#### Follow us on
Youtube 232K FollowersLinkedin 26K FollowersInstagram NewRSS 19K ReadersX 57.1k FollowersFacebook 21K LikesBluesky New
#### Stay in the know
The InfoQ PodcastEngineering Culture PodcastThe Software Architects' Newsletter
General Feedback [[email protected]](mailto:[email protected]) Advertising [[email protected]](mailto:[email protected]) Editorial [[email protected]](mailto:[email protected]) Marketing [[email protected]](mailto:[email protected])
InfoQ.com and all content copyright © 2006-2026 C4Media Inc.
Privacy Notice, Terms And Conditions, Cookie Policy
Close
[BT](https://www.infoq.com/int/bt/ "bt")