Mercadona dumps algolia for claude code – a $9 million savings
Mercadona, the retail giant dominating the Spanish food sector, has abruptly severed ties with Algolia, the search and discovery platform, opting instead for Anthropic’s Claude Code. The shift, far from a mere upgrade, represents a staggering 90-94% reduction in annual software costs – a move driven by explosive online growth and a surprisingly swift implementation.

A three-day sprint: rethinking search infrastructure
According to CTO José Ramón Pérez Agüera, the integration of Claude Code has been remarkably streamlined. “To be honest, and I know this sounds a bit clunky, but it’s the truth,” he confessed in a LinkedIn post, “70% of the work – implementing the search, improving quality, and laying the groundwork – took just three days. Plus a weekend, and an extended Monday.” This aggressive timeline highlights Mercadona’s commitment to digital transformation and a willingness to embrace cutting-edge AI solutions.
Previously, Algolia managed a staggering 4.4 million weekly searches and an average of 25,000 daily orders on Mercadona’s online platform. The platform, which now processes a considerable volume of traffic, had been relying on Algolia since 2018. However, as online sales continue to surge, the limitations of Algolia’s pricing model – escalating costs tied directly to usage – became increasingly untenable. Mercadona’s digital strategy has clearly prioritized cost control while maintaining a premium user experience.
Claude Code’s ability to completely eliminate irrelevant search results – a persistent issue with the previous system that accounted for 4% of all online queries – is a critical factor. The AI can now perform hybrid searches utilizing both keywords and semantic understanding, optimizing search rankings with an efficiency previously unattainable. A mere 739 MB of catalog, code, and analytics data were processed in just three days, demonstrating the tool’s rapid learning and adaptation capabilities.
The savings aren’t just about the monthly fee; Mercadona is effectively shedding a $9,000 to $15,000 expense, and replacing it with a system costing under $900. This represents a monumental shift in budgetary priorities, signaling a decisive move towards a more agile and cost-effective digital ecosystem. It’s a testament to Mercadona’s data-driven approach and its willingness to challenge established industry norms.
The move follows a period of rapid growth for the retailer and a recognition that Algolia’s pricing structure simply couldn't keep pace with the escalating demands of its online operations. The shift to Claude Code isn't just about saving money; it’s about positioning Mercadona for sustained growth in an increasingly competitive digital landscape – a landscape where efficiency and innovation are paramount.