Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for bu
Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for bu
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:
🗣️ 🎥 If you prefer watching videos:
Don't see a feature on this list? Search our issue tracker if someone has already requested it and add a comment to it explaining your use-case, or open a new issue if not. We prioritize our roadmap based on user feedback, so we'd love to hear from you.
Here's Typesense's public roadmap: https://typesense.link/roadmap.
The first column also explains how we prioritize features, how you can influence prioritization and our release cadence.
We'd love to benchmark with larger datasets, if we can find large ones in the public domain. If you have any suggestions for structured datasets that are open, please let us know by opening an issue. We'd also be delighted if you're able to share benchmarks from your own large datasets. Please send us a PR!
Typesense is used by a range of users across different domains and verticals.
On Typesense Cloud we serve more than 10 BILLION searches per month. Typesense's Docker images have been downloaded over 12M times.
We've recently started documenting who's using it in our Showcase. If you'd like to be included in the list, please feel free to edit SHOWCASE.md and send us a PR.
You'll also see a list of user logos on the Typesense Cloud home page.
Option 1: You can download the binary packages that we publish for Linux (x86_64 & arm64) and Mac (x86_64).
Option 2: You can also run Typesense from our official Docker image.
Option 3: Spin up a managed cluster with Typesense Cloud:
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=Hu52dwsas2AdxdEWe 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 typesenseWe can now initialize the client and create a companies collection:
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_field": "num_employees"
})Now, let's add a document to the collection we just created:
document = {
"id": "124",
"company_name": "Stark Industries",
"num_employees": 5215,
"country": "USA"
}
client.collections['companies'].documents.create(document)Finally, let's search for the document we just indexed:
search_parameters = {
'q' : 'stork',
'query_by' : 'company_name',
'filter_by' : 'num_employees:>100',
'sort_by' : 'num_employees:desc'
}
client.collections['companies'].documents.search(search_parameters)Did you notice the typo in the query text? No big deal. Typesense handles typographic errors out-of-the-box!
A step-by-step walk-through is available on our website here.
This will guide you through the process of starting up a Typesense server, indexing data in it and querying the data set.
Here's our official API documentation, available on our website: https://typesense.org/api.
If you notice any issues with the documentation or walk-through, please let us know or send us a PR here: https://github.com/typesense/typesense-website.
While you can definitely use CURL to interact with Typesense Server directly, we offer official API clients to simplify using Typesense from your language of choice. The API Clients come built-in with a smart retry strategy to ensure that API calls made via them are resilient, especially in an HA setup.
If we don't offer an API client in your language, you can still use any popular HTTP client library to access Typesense's APIs directly.
Here are some community-contributed clients and integrations:
Feature request: cancel an in-progress schema alter (alter is replayed from zero on restart and blocks writes for hours)
macOS (arm64): concurrent POST /collections + GET /collections permanently wedge the write path ("Stuck req_key", queued_writes never drains)
Option to disallow (or penalise) typos on the first character of a token
[Feature Request] Option to return only collection name on the '/collections' endpoint
JOINs/reference fields broken on node restored from Raft snapshot
Typo and synonyms
Highlight not working properly with field-level token_separators
documents/import silently drops a multibyte UTF-8 character from a stored string in large request bodies
Slower faceting + group by after refactor
[30.2] typesense_memory_resident_bytes reports stats.active instead of stats.resident