Download the PHP package dmlab/module-typesense-search without Composer
On this page you can find all versions of the php package dmlab/module-typesense-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dmlab/module-typesense-search
More information about dmlab/module-typesense-search
Files in dmlab/module-typesense-search
Package module-typesense-search
Short Description Registers Typesense as a selectable Magento search engine and implements the query side: translates a Magento search request into a Typesense query and returns matched IDs plus aggregations. Serves quick/advanced search, category listings and layered navigation. Drop-in replacement for OpenSearch/Elasticsearch, free and uncapped.
License OSL-3.0
Informations about the package module-typesense-search
DmLab_TypesenseSearch
Registers Typesense as a selectable Magento 2 search engine and implements the query side
(L2 of the Typesense suite): it translates a Magento\Framework\Search\RequestInterface into a
Typesense query and returns matched product IDs plus aggregations. A free, uncapped drop-in
replacement for OpenSearch/Elasticsearch.
Since Magento 2.4 the engine also drives category listings and layered-navigation counts, so this
one module serves quick search, advanced search, category listings and layered navigation. It
reads only — writing documents and patching schema is typesense-indexer's job.
Install
Select Typesense
- Stores → Configuration → Catalog → Catalog Search.
- Set Search Engine to Typesense and fill in the connection fields (host / port / protocol /
API key — owned by
typesense-indexer). The connection is validated on save. - Reindex:
bin/magento indexer:reindex catalogsearch_fulltext.
Switching back to OpenSearch/Elasticsearch is reversible — pick the other engine and reindex.
setup:install --search-engine=typesense --typesense-nodes=<host:port> --typesense-protocol=<http|https>
works too (the API key is set in admin afterwards, via its encrypted backend).
Covered
Quick + advanced search · category listings · layered navigation (facet buckets + counts) · price
ranges / dynamic intervals · typo-tolerant suggestions (honouring catalog/search/search_suggestion_*).
Not yet: synonyms (a later module). Constructs Typesense's grammar cannot express (wildcard /
negated compound filters) degrade to an empty result rather than a wrong one; standard catalog flows
never produce them. etc/search_engine.xml declares only what is implemented.
The QueryModifierInterface seam
Query building is a di-sorted pipeline, never a preference — so paid modules (merchandising,
semantic) compose instead of colliding. The composite ships empty; add a step by merging into the
modifiers array in di.xml:
Each QueryModifierInterface::modify(array $query, RequestInterface $request): array receives the
previous step's payload; steps run in sortOrder.
Requirements
Magento 2.4.x · PHP 8.3–8.5 · a running Typesense server (connection owned by typesense-indexer).
License
OSL-3.0 © DMLab.
All versions of module-typesense-search with dependencies
magento/framework Version >=103.0
dmlab/module-typesense-core Version >=0.0.1
dmlab/module-typesense-indexer Version >=0.0.1
magento/module-search Version >=101.0
magento/module-advanced-search Version >=100.0
magento/module-catalog-search Version >=102.0
magento/module-catalog Version >=104.0
magento/module-customer Version >=103.0
magento/module-store Version >=101.0
magento/module-config Version >=101.0
magento/module-elasticsearch Version >=101.0