Back to services

Typesense

Blazing fast, typo-tolerant open source search engine optimized for developer happiness and ease of use.

View alternatives to Typesense
Suggest edit
Open source
Self-hostable
GPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: We were unable to fetch the content of the official website this time, so what follows is written based on existing knowledge of Typesense. Please refer to the official website https://typesense.org for specific version numbers, pricing and the latest features.

Introduction

Typesense is an open-source search engine that focuses on being fast and easy to use. It keeps its index in memory, so search latency is typically just a few milliseconds, which makes it well suited to instant search, where results appear as you type. Compared with solutions like Elasticsearch, which are full-featured but complex to configure, Typesense has sensible defaults out of the box, so developers can build usable search without spending much time on tuning.

Key Features

  • Typo tolerance: Returns relevant results even when users make spelling mistakes.
  • Instant search: Fast responses, ideal for search-box suggestions and results that update as you type.
  • Faceting and filtering: Supports faceted counts, filtering and sorting by field, which suits e-commerce and directory-style sites.
  • Geo search: Supports filtering and sorting by distance and geographic area.
  • Vector and semantic search: Can store and query vectors, and supports hybrid search that combines keyword search with semantic search.
  • Synonyms and result curation: Lets you configure synonyms, and manually pin or hide specific results.
  • API key permission control: Can generate scoped API keys, which is handy for multi-tenant scenarios.
  • Clustering and high availability: Runs as a multi-node cluster based on the Raft protocol, providing fault tolerance.

Target Users

  • Developers who want to add search to a website or app
  • Teams looking for a self-hosted alternative to Algolia to cut costs
  • Projects that find Elasticsearch too heavy and want a simpler option

Core Strengths

  • Open source and self-hostable: You stay in control of your data and deployment.
  • Easy to get started: Used through a RESTful API, with client libraries available in many languages.
  • Front-end ecosystem: Through an adapter it works with components such as Algolia's InstantSearch.js, so you can quickly put together a search interface.
  • Two ways to use it: You can deploy it yourself or use the officially hosted Typesense Cloud.

Installation and Deployment

Using Docker is the simplest way:

docker run -p 8108:8108 -v $(pwd)/typesense-data:/data \
  typesense/typesense:<版本号> \
  --data-dir /data --api-key=你的API密钥 --enable-cors

Official packages are also available for Linux (DEB/RPM) and macOS. The service listens on port 8108 by default.

Technical Requirements

  • The index is kept in memory, so you need enough RAM to hold the dataset you want to search. Keep this in mind when planning resources.
  • For production, a multi-node cluster is recommended to ensure high availability.

Things to Note

  • The core code is written in C++ and licensed under GPL-3.0.
  • It belongs to the same category as Meilisearch, Algolia and Elasticsearch, and is often compared with them.