Prompt
What is the best search infrastructure for customer-facing apps?
Latest observation
There isn’t one universally “best” search stack for customer-facing apps, but there is a best choice for most teams depending on what you need:
My short answer
- Best all-around for product search / app search: Algolia
- Best open-source / self-hosted flexibility: Elasticsearch or OpenSearch
- Best for simple, cheap, very fast search at scale: Typesense or Meilisearch
- Best if search is part of a broader data platform and you want control: Elasticsearch/OpenSearch
How to choose
1) Algolia
Best when: you want the fastest path to polished customer-facing search.
Pros
- Excellent relevance out of the box
- Great typo tolerance, autocomplete, faceting, filtering
- Very easy to implement
- Strong developer experience and UI components
- Good analytics and merchandising tools
Cons
- Can get expensive at scale
- Less control than self-hosted systems
- Vendor lock-in risk
Typical fit
- E-commerce, marketplaces, SaaS apps, content sites
- Teams that care about UX and speed of delivery
2) Elasticsearch / OpenSearch
Best when: you need deep control, complex querying, or already run infrastructure.
Pros
- Powerful search and aggregation features
- Highly configurable relevance
- Mature ecosystem
- Works well for large, complex datasets
Cons
- More operational overhead
- Relevance tuning can be complex
- Can be overkill for simpler apps
Typical fit
- Large platforms, enterprise apps, internal + external search
- Teams with strong backend/SRE capability
Note: OpenSearch is often chosen if you want an open-source fork with fewer licensing concerns.
3) Typesense
Best when: you want a modern, lightweight search engine that’s easy to run.
Pros
- Simple API
- Good typo tolerance and instant search
- Easier ops than Elasticsearch
- Good performance and developer experience
Cons
- Less feature-rich than Elasticsearch
- Smaller ecosystem
Typical fit
- Startups and product teams needing a practical search engine without heavy ops
4) Meilisearch
Best when: you want something very easy and fast for user-facing search.
Pros
- Very easy to get started
- Good autocomplete and typo handling
- Lightweight and developer-friendly
Cons
- Less mature for advanced use cases
- Fewer enterprise features
Typical fit
- Small-to-mid apps, MVPs, content/product search
What matters most for customer-facing search
A good search infra should give you:
- Low latency: ideally sub-100ms perceived search response
- Relevance tuning: boosts, ranking rules, synonyms, typo handling
- Faceting/filtering: categories, price, availability, tags
- Autocomplete/suggestions
- Analytics: zero-result queries, click-through, conversion
- Indexing pipeline: reliable updates from source-of-truth data
- Scalability and availability
Practical recommendation
If you’re building a customer-facing app today:
- Need best UX and fastest launch: choose Algolia
- Need open-source control and advanced search: choose OpenSearch or Elasticsearch
- Need something simpler and cheaper: choose Typesense
- Need easiest MVP: choose Meilisearch
My default recommendation by company stage
- Startup/MVP: Meilisearch or Typesense
- Growth-stage SaaS/e-commerce: Algolia if budget allows, otherwise Typesense/OpenSearch
- Enterprise/complex search: Elasticsearch/OpenSearch
If you want, I can also give you a decision matrix comparing Algolia, Elasticsearch/OpenSearch, Typesense, and Meilisearch across cost, performance, relevance, and ops.