docs-site/content/guide/magento2-search.md
The default search in Magento is based on the basic search features in your primary database, which while it might give you decent mileage, might not be as fast as your dataset grows.
You can use Typesense to replace the default DB-based search in your Magento 2 application, to make your search experience blazing fast and scaleable.
In this article, we'll explore the Magento Extension for Typesense built by the Ceymox team.
:::tip Third-Party Integration The Magento extension described in this article is built and maintained by a member of the extended Typesense community - Ceymox
Please reach out to them directly for additional support. :::
The following Magento versions are supported by this extension:
The Ceymox team is also planning to add supports for the Adobe Commerce and Hyva versions. Read their documentation for latest updates.
If you are new to Typesense, start by signing up for a Typesense Cloud Account.
We'll now explore how to install the Magento2 extension next.
To install the extension manually, you need to have access to your Magento admin panel and Magento application source code.
Follow the steps:
composer require php-http/curl-client typesense/typesense-php
php bin/magento module:enable Ceymox_TypesenseSearch - to enable extension.
php bin/magento setup:upgrade - to install the extension.
php bin/magento setup:di:compile - to compile the code.
php bin/magento setup:static-content:deploy - to deploy static view files.
php bin/magento cache:clean - to clean the cache.
In order to connect Magento with Typesense Cloud, we will need to configure the following settings:
From the Magento Admin panel, click on:
Store > Configuration > Typesense Search > General > General Configuration
You can get the typesense credentials from Typesense Cloud Dashboard
These are API keys you can generate from your Typesense Cloud dashboard.
Prefix to use for your Typesense collection names.
If you've provisioned a Highly Available cluster or Search Delivery Network in Typesense Cloud, enter the Nearest Node hostname you see from your Typesense Cloud Dashboard under Nearest Node.
Specify the individual hostname(s) of your Typesense Cloud cluster, that you see on your cluster dashboard.
Separate multiple hostnames by comma.
Use https for Typesense Cloud.
Use 443 for Typesense Cloud.
Typesense supports the ability to implement Semantic Search. Semantic search helps retrieve results that are conceptually related to a user's query. We can turn normal search into Semantic search by embedding the fields with appropriate AI models. In this Typesense Magento module, we have implemented S-BERT and GTE models.
To configure semantic search from the Magento Admin panel click on,
Store > Configuration > Typesense Search > Semantic Search > Semantic Search
The extension supports several more options. Read more about them here in the Official Documentation written by Ceymox.
If you have any questions or need additional help, please contact the Ceymox team directly: https://ceymox.com/contact/