Download the PHP package empiricompany/openmage-search without Composer
On this page you can find all versions of the php package empiricompany/openmage-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download empiricompany/openmage-search
More information about empiricompany/openmage-search
Files in empiricompany/openmage-search
Package openmage-search
Short Description Advanced search module for OpenMage using Typesense
License MIT
Informations about the package openmage-search
TypeSense Search for OpenMage
Advanced search module for OpenMage using Typesense as search engine and instantsearch.js for frontend.
Overview
MM Search is a module that replaces the default search engine in OpenMage with Typesense, a fast and typo-tolerant search engine. This module provides:
- Instant search with autocomplete
- Faceted search
- Typo tolerance
- Fast and relevant search results
- Easy configuration
Requirements
- OpenMage LTS 19.x or higher
- PHP 7.4 or higher
- Typesense server (self-hosted or cloud)
docker-compose.yml example for self-host a TypeSense instance with a dashboard
Installation
Via Composer
This will automatically install the latest stable version of the module.
Configuration
- Go to System > Configuration > MM Search
- Enable the module
- Configure the Typesense connection settings:
- Admin API Key
- Search-Only API Key
- Host
- Port
- Protocol
- Path
- Collection Name
- Save the configuration
Indexing
This module completely replaces the default search engine in OpenMage with Typesense. When products are indexed, they are automatically added to Typesense.
To rebuild the index:
- Go to System > Index Management
- Select "Catalog Search Index"
- Choose "Reindex Data" from the actions dropdown
- Click "Submit"
Features
Instant Search
The module replaces the default search box with an instantsearch.js interface that shows results as you type.
Faceted Search
Users can filter search results by:
- Categories
- Manufacturers
- Price range and other attributes with "Use In Search Results Layered Navigation": Yes
Typo Tolerance
Typesense's typo tolerance ensures that users find what they're looking for even if they make typos.
Customization
Templates
You can customize the search interface by modifying the following templates:
app/design/frontend/base/default/template/mm/search/instantsearch.phtml
CSS
You can customize the appearance by modifying the CSS files:
skin/frontend/base/default/css/mm_search/instantsearch.css
JavaScript
You can customize the behavior by modifying the JavaScript file:
skin/frontend/base/default/js/mm_search/instantsearch-custom.js
Troubleshooting
Common Issues
- Connection Failed: Make sure your Typesense server is running and accessible from your OpenMage server.
- No Results: Check if the products are properly indexed in Typesense. Try rebuilding the Catalog Search Index.
- JavaScript Errors: Check the browser console for any JavaScript errors.
License
This module is licensed under the MIT License.
All versions of openmage-search with dependencies
magento-hackathon/magento-composer-installer Version *
typesense/typesense-php Version *