typesense /typesense
Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences
★ 27,133⑂ 1,032👁 137⑃ 1,100● 2,016▤ 38
+3
日增长
+57
周增长
+152
月增长
27,133
stars
1,032
forks
137
watchers
1,100
prs
2,016
issues
38
releases
README
Typesense is a fast, typo-tolerant search engine for building delightful search experiences.
An Open Source Algolia Alternative &
An Easier-to-Use ElasticSearch Alternative
--
Website |
Documentation |
Roadmap |
Slack Community |
Community Threads |
Twitter
✨ Here are a couple of live demos that show Typesense in action on large datasets:
- Search a 32M songs dataset from MusicBrainz: songs-search.typesense.org
- Search a 28M books dataset from OpenLibrary: books-search.typesense.org
- Search a 2M recipe dataset from RecipeNLG: recipe-search.typesense.org
- Search 1M Git commit messages from the Linux Kernel: linux-commits-search.typesense.org
- Spellchecker with type-ahead, with 333K English words: spellcheck.typesense.org
- An E-Commerce Store Browsing experience: ecommerce-store.typesense.org
- GeoSearch / Browsing experience: airbnb-geosearch.typesense.org
- Search / Browse xkcd comics by topic: xkcd-search.typesense.org
- Semantic / Hybrid search on 300K HN comments: hn-comments-search.typesense.org
🗣️ 🎥 If you prefer watching videos:
- Here's one where we introduce Typesense and show a walk-through: https://youtu.be/F4mB0x_B1AE?t=144
- Check out Typesense's recent mention during Google I/O Developer Keynote: https://youtu.be/qBkyU1TJKDg?t=2399
- Here's one where one of our community members gives an overview of Typesense and shows you an end-to-end demo: https://www.youtube.com/watch?v=kwtHOkf7Jdg
Quick Links
- Features
- Benchmarks
- Roadmap
- Who's using this
- Install
- Quick Start
- Step-by-step Walk-through
- API Documentation
- API Clients
- Search UI Components
- FAQ
- Support
- Contributing
- Getting Latest Updates
- Build from Source
Features
- Typo Tolerance: Handles typographical errors elegantly, out-of-the-box.
- Simple and Delightful: Simple to set-up, integrate with, operate and scale.
- ⚡ Blazing Fast: Built in C++. Meticulously architected from the ground-up for low-latency (
Quick Start
Here's a quick example showcasing how you can create a collection, index a document and search it on Typesense.
Let's begin by starting the Typesense server via Docker:
docker run -p 8108:8108 -v/tmp/data:/data typesense/typesense:29.0 --data-dir /data --api-key=Hu52dwsas2AdxdE
We have API Clients in a couple of languages, but let's use the Python client for this example.
Install the Python client for Typesense:
pip install typesense
We can now initialize the client and create a companies collection:
python
import typesense
client = typesense.Client({
'api_key': 'Hu52dwsas2AdxdE',
'nodes': [{
'host': 'localhost',
'port': '8108',
'protocol': 'http'
}],
'connection_timeout_seconds': 2
})
create_response = client.collections.create({
"name": "companies",
"fields": [
{"name": "company_name", "type": "string" },
{"name": "num_employees", "type": "int32" },
{"name": "country", "type": "string", "facet": True }
],
"default_sorting_fiTop issues
#228Support for writing systems without spaces between words50 comments · 2021-02-25#914Performance problem (facets)43 comments · 2023-02-28#573Peer refresh failed, error: Doing another configuration change29 comments · 2022-04-08#1657[Feature Request] Support querying joined fields28 comments · 2024-04-08#2365symbols_to_index not working with hybrid searches21 comments · 2025-05-15#750Not able to alter connectionTimeoutSeconds 19 comments · 2022-10-10#2658Prefix search returning results from secondary field (casting) even when prefix=false and query_by_weights are applied17 comments · 2025-11-05#2145Bug: Handling multiple matches in collection joins for filter_by16 comments · 2025-01-14
Latest release
Version 30.2 v30.2 2026-04-19This release fixes some important bugs identified in v30.1. Bug Fixes - [v30.2] Fixed incorrect handling of numeric != filters in both lazy and eager filter execution, including explicit not-equals lists on range-indexed numeric fields. - [v30.2] Fixed highlighting to correctly mark single-token phrase matches and to avoid race conditions during union searches that run alongside concurrent writes. - [v30.2] Fixed missing synonyms, stem, and stemming_dictionary fields in curation GET responses. - [v30.2] Fixed a number of edge cases in diversity search. - [v30.2] Fixed union search d