Typesense is a fast, typo-tolerant search engine for building delightful search experiences.
(clients for other languages too): pip install typesense
We can now initialize the client and create a (companies) collection:
Now, let's add a document to the collection we just created:
Finally, let's search for the document we just indexed:
Detailed Guide
A detailed guide is available on Typesense website
. Build from sourceBuilding with Docker
The The Docker build script takes care of all required dependencies, so it's the easiest way to build Typesense:
TYPESENSE_VERSION=nightly ./docker-build. sh --build-deploy-image --create-binary [--clean] [--depclean]
Typesense requires the following dependencies: (C ) (compatible compiler (GCC>=4.9.0, Apple Clang>=8.0 , Clang>=3.9.0)
./ build.sh --create-binary [--clean] [--depclean]
The first build will take some time since other third-party libraries are pulled and built as part of the build process.
The first build will take some time since other third-party libraries are pulled and built as part of the build process.
How does this differ from using Elasticsearch?
Elasticsearch is better suited for larger teams who have the bandwidth to administer, scale and fine-tune it and Especially when have a need to store billions of documents and scale horizontally.
Typesense is built specifically for decreasing the "time to market" for a delightful search experience. This means focussing on developer productivity and experience with a clean API, clear semantics and smart defaults so that it just Works without turning many knobs.
Speed is great, but what about the memory footprint?
A fresh Typesense server will take less than 5 MB of memory. As you start indexing documents, the memory use will increase correspondingly. How much it increases depends on the number and type of fields you index.
We've strived to keep the in-memory data structures lean. To give you a rough idea: when 1 million Hacker News titles are indexed along with their points, Typesense consumes 636 MB of memory. The same size of that data on disk in JSON format is 97 MB. We hope to add better benchmarks on a variety of different data sets soon. In the mean time, if you have any numbers from your own datasets, please send us a PR!
Help
If you've any questions or run into any problems, please create a Github issue and we'll try our best to help.
© - Typesense Inc.
Read More
GIPHY App Key not set. Please check settings