All Posts
Engineering May 24, 2026

Meilisearch vs Typesense vs Algolia: Headless Commerce Search Tested (2026)

Algolia, Typesense, and Meilisearch are the three serious search engines for headless commerce in 2026. Algolia is the managed incumbent. Typesense is the operationally simple open-source option. Meilisearch is the developer-experience-led challenger. We benchmark all three on a 2 million SKU catalog and report what the numbers, and the operational reality, actually say.

The search infrastructure decision for headless commerce has become more interesting, not less, since Algolia stopped being the only serious answer. In 2026, three open-or-managed options dominate the category: Algolia (managed, mature, expensive), Typesense (open-source, simple, fast), and Meilisearch (open-source, developer-experience-led, increasingly capable). Pick the wrong one and you are either paying too much, operating too much, or fighting the engine's defaults for the next two years.

This is a three-way comparison from the perspective of teams building Shopify Plus headless storefronts, Hydrogen apps, Salesforce Commerce Cloud headless deployments, and custom Next.js commerce frontends. We benchmarked all three on a 2 million SKU synthetic product catalog with typical e-commerce facets (category, brand, price range, color, size, in-stock status).

Comparison Table: Three Engines, Three Bets

Dimension Meilisearch Typesense Algolia
Type Open source + managed cloud Open source + managed cloud Managed only
Language Rust C++ Proprietary (managed)
License MIT GPL-3.0 Proprietary
Hosting Self-host or Meilisearch Cloud Self-host or Typesense Cloud Managed only
Index size limit RAM-bound RAM-bound Per-plan record cap
Query latency (p50) 8 to 20ms 5 to 15ms 10 to 30ms (region dependent)
Faceted search Yes, native Yes, native Yes, native
Typo tolerance Native, configurable Native, configurable Native, ML-tuned
Vector search Yes (hybrid + semantic, 1.10+) Yes (hybrid + semantic, 27.0+) Yes (Neural Search add-on)
Geo search Yes Yes Yes
Personalization Manual via filters Manual via filters Native (Recommend, Personalization API)
A/B testing Manual Manual Native
Federated search Yes (multi-index) Yes (multi-search) Yes
Pricing model (managed) Per document + search ops Per RAM + search ops Per record + search ops (steep)
Best for DX-led teams, modern dev workflows Operational simplicity, predictable cost Mature managed needs, personalization-heavy commerce

Benchmark: 2 Million SKU Product Catalog

Test harness: 2 million synthetic product records (avg 1.2 KB each), 8 faceted attributes, indexed on a 3-node cluster with 16 GB RAM per node for the self-hosted options. Algolia ran on a Standard plan with appropriate scaling. Queries are typical e-commerce patterns: keyword search with 3-4 facet filters, sorted by relevance or price.

Indexing time (full catalog, cold start)

Engine Time Throughput
Meilisearch 1.12 4 min 18 sec ~7,750 docs/sec
Typesense 27.1 3 min 42 sec ~9,000 docs/sec
Algolia 8 min 12 sec ~4,060 docs/sec

Self-hosted engines index faster than Algolia, which is expected given Algolia rate-limits indexing operations on lower tiers. For nightly catalog re-indexes on a 2M SKU store, all three are fine. For real-time updates (typical for inventory and pricing changes), see the next section.

Real-time update latency (single doc update to visible in search)

Engine p50 p99
Meilisearch 180ms 920ms
Typesense 95ms 410ms
Algolia 320ms 1,400ms

Typesense wins update propagation, which matters more than initial indexing for commerce. If a SKU goes out of stock, every second it remains visible in search results is a potentially-failed conversion. Typesense's update model (in-memory commit, immediately queryable) is the tightest of the three.

Query latency under load (200 QPS sustained, mixed facet queries)

Engine p50 p99
Meilisearch (self-hosted, 3-node) 14ms 38ms
Typesense (self-hosted, 3-node) 9ms 24ms
Algolia (Standard plan) 18ms 47ms

Typesense's C++ engine has the edge in raw query latency. Meilisearch closes the gap meaningfully in recent versions. Algolia is competitive but the geographic distribution of their CDN matters: P99 from a single region instance can be higher than self-hosted in your own region.

Vector Search and Hybrid Search

All three engines now support vector search alongside keyword search. The implementations diverge in important ways.

Meilisearch supports vector search natively from 1.10+. You can attach an embedding model (OpenAI, Cohere, Hugging Face) and the engine will embed documents at ingest. Hybrid search blends BM25 scoring with vector similarity automatically. Configuration is in the index settings, no separate service required.

Typesense supports vector search in 27.0+ with similar ergonomics. You define a vector field, supply embeddings (or use Typesense's built-in OpenAI integration), and query with ?q=...&vector_query=.... The hybrid scoring is configurable and exposed in the API.

Algolia offers Neural Search as a separate add-on (additional cost). The integration is polished but the pricing is meaningfully higher than the self-hosted options. For commerce, Algolia Neural Search is excellent but you pay for it.

For Contra Collective clients building AI-augmented commerce (semantic product search, "similar items" recommendations), Typesense and Meilisearch deliver 80 percent of Algolia Neural Search's capability at a fraction of the cost. The remaining 20 percent (ML-tuned personalization, automated query understanding) is real but rarely the deciding factor.

Operational Reality

Algolia is operationally invisible. You send API calls, results come back, you do not think about nodes or replication. For teams without infrastructure capacity, this is the entire value proposition.

Typesense self-hosted runs as a single binary or Docker container. State lives on disk, indexed data lives in RAM. A 3-node Typesense cluster handles a 2M SKU catalog comfortably on c6i.xlarge instances ($90/month each on AWS). Operational footprint is minimal: configure replication, monitor RAM, restart on upgrade. Most engineering teams can run this without a dedicated DevOps engineer.

Meilisearch self-hosted is similarly simple. Rust single-binary deployment, RocksDB on disk, in-memory query path. Operational complexity is comparable to Typesense, perhaps slightly higher because Meilisearch Cloud (the managed option) is less mature than Typesense Cloud.

For teams running Shopify Plus headless or Hydrogen storefronts, the operational question reduces to: do you have engineers who can run a Docker container with persistent volumes? If yes, Typesense or Meilisearch self-hosted will save you tens of thousands of dollars a year on a catalog above 1 million SKUs. If no, Algolia or one of the managed cloud offerings (Typesense Cloud, Meilisearch Cloud) is the pragmatic choice.

Pricing at Scale: 2M SKUs, 100M Search Operations / Month

This is the cost comparison that matters for enterprise commerce:

Option Estimated monthly cost
Meilisearch Cloud (Builder tier scaled) ~$1,200
Typesense Cloud (4 GB RAM x 3 nodes) ~$590
Algolia Standard (100M ops, 2M records) ~$4,800+
Typesense self-hosted (3x c6i.xlarge AWS) ~$300 + ops time
Meilisearch self-hosted (3x c6i.xlarge AWS) ~$300 + ops time

Algolia is 4x to 16x the cost of the open-source options at this scale. The cost gap closes if you weight in engineering time to operate self-hosted instances, but for any meaningful catalog above 500K SKUs, the math heavily favors Typesense or Meilisearch.

Integration with Headless Commerce Stacks

Shopify Hydrogen: All three engines integrate cleanly. Typesense has the best-documented Hydrogen example. Meilisearch has a community Hydrogen plugin. Algolia has official Shopify connectors and the most mature ecosystem.

Salesforce Commerce Cloud (SFCC) headless: Algolia is the default Salesforce-blessed search partner. Typesense and Meilisearch integrate via custom OCAPI/SCAPI bridges. For most SFCC headless engagements we run, replacing Algolia with Typesense is technically feasible but requires custom integration work.

Sanity, Contentful, Storyblok content layers: All three engines work as the search layer in front of headless CMS plus product catalog. The CMS provides content, the search engine provides the query path. Sanity has first-party Algolia integration; Typesense and Meilisearch require custom indexing webhooks.

Custom Next.js Commerce / Remix Commerce: Typesense and Meilisearch both ship modern JavaScript clients with TypeScript types. Integration is straightforward.

When Algolia Is the Right Choice

  • You need personalization, A/B testing, and recommendation as managed features without building them.
  • Your team has no operational capacity and you can absorb the cost.
  • You are on Salesforce Commerce Cloud and Algolia's first-party integration matters.
  • You need extensive analytics, dashboards, and merchandising tooling out of the box.

When Typesense Is the Right Choice

  • You want operational simplicity and predictable cost.
  • Update propagation latency matters (inventory, pricing, availability).
  • Your team can operate a Docker container or use Typesense Cloud.
  • You are building a custom headless storefront and want the leanest infrastructure.

When Meilisearch Is the Right Choice

  • Your team values developer experience and modern API design.
  • You want the most ergonomic vector search setup with minimal configuration.
  • You are building newer projects without legacy search infrastructure.
  • You prefer Rust ecosystem tooling and licensing simplicity (MIT vs GPL).

When This Applies to Your Stack

For enterprise Shopify Plus headless storefronts above 500K SKUs, the dominant pattern Contra Collective recommends is Typesense self-hosted or Typesense Cloud. The operational footprint is minimal, costs scale linearly, and integration with Hydrogen or Next.js Commerce is well-trodden. For teams without operational capacity, Algolia remains defensible but pay close attention to the per-record pricing tier breakpoints.

For Salesforce Commerce Cloud headless migrations, the default is Algolia for the first iteration (because the integration is official and fast), then often a migration to Typesense in iteration 2 once costs become visible. This is a common pattern in our SFCC engagement work.

For new builds with no legacy, Meilisearch is worth evaluating seriously, especially for teams that already have Rust infrastructure or value the MIT licensing.

Headless commerce search is one of the highest-leverage infrastructure decisions in a commerce stack. The wrong choice gets baked into URL structures, indexing pipelines, analytics, and merchandising workflows. We have led these migrations both directions (Algolia to Typesense, Typesense to Algolia) and can help structure the evaluation without the trial-and-error.

FAQ

Is Meilisearch faster than Typesense? Not in our benchmarks. Typesense edges Meilisearch on raw query latency (9ms vs 14ms p50 in our 2M SKU test) and update propagation. Meilisearch is competitive and improving fast; the gap is small enough to be irrelevant for most workloads.

Can Typesense replace Algolia for a Shopify Plus storefront? Yes for most cases. The integration work is moderate (custom webhooks for product updates, custom faceted search UI), but the engine is fully capable. Personalization and A/B testing require additional work; Algolia provides these natively.

Which engine has the best vector search? All three support hybrid keyword + vector search. Typesense and Meilisearch have the most ergonomic configurations. Algolia Neural Search is the most polished but most expensive. For most commerce workloads, Typesense or Meilisearch is sufficient.

What about Elasticsearch or OpenSearch? Both are capable but operationally heavy compared to Typesense or Meilisearch. We covered this in detail in the Typesense vs Elasticsearch vs OpenSearch comparison. For commerce specifically, the lighter-weight engines usually win.

Can I migrate from Algolia to Typesense without breaking my storefront? Yes, but the migration is non-trivial. Index schema, query DSL, and faceted search semantics differ. Plan for 4 to 8 weeks of engineering work depending on storefront complexity, plus a parallel-run period where both engines serve traffic.

[ 02 ] — Keep Reading

More from the lab.

Oct 4, 2026 Engineering

NetSuite's Native AI Agents vs Custom MCP Tools: What Actually Moves the Needle in 2026

NetSuite 2026.2 brings Ask Oracle, a conversational assistant for natural language questions over your ERP data, and AI Canvas, a workspace for organizing the scorecards and charts that come out of that conversation. Both ship native, inside the NetSuite Next experience, available now in the United States and Canada. That is real progress on the question teams have been building custom NetSuite integrations to answer for years. It is also not the same question as whether to build a custom Model Context Protocol tool against your own schema, which remains the highest leverage move for anything Ask Oracle was never designed to touch.

Sep 28, 2026 Engineering

Adobe Commerce's September 2026 Storefront Release: What B2B and Headless Teams Need to Verify

Adobe shipped its September 2026 Commerce Storefront release with six changes worth a headless or B2B team's attention: Free Gift Selection, an expanded Payment Services drop in with Google Pay and PayPal Buttons, Multiple Named Wishlists, a shared B2B Company Address Book with role based permissions, accessibility improvements across cart and account, and a reCAPTCHA fix for B2B company registration. Five of these are low risk component updates. The sixth ships with an action item, passing an explicit configuration flag, that will break company registration on B2B enabled backends if a team skips it. This post walks through what shipped, the versions behind it, and a verification checklist to run before this release reaches production.

Sep 28, 2026 Engineering

Claude Code's Permanent 17 Percent Usage Cut: What Changed and How to Budget For It

If your team's Claude Code usage suddenly feels tighter this month, the numbers explain why. A temporary 50 percent weekly limit boost expired on August 31, 2026, and the permanent replacement that took effect September 14 is a 25 percent increase, not a 50 percent one. Anthropic said so directly in its own announcement: compared to the boosted summer level, this works out to a 17 percent reduction in weekly limits on Claude Code. That is an unusually plain admission from a vendor, and it is worth taking at face value rather than decoding it as marketing language. This post lays out the full timeline from May through September, why the separate 5 hour session change does not offset the weekly cut, and three concrete steps for budgeting a team's Claude Code usage against the new permanent ceiling.

Ready when you are

Want to discuss this topic?

Start a Conversation