madonair / shopware-meilisearch
Meilisearch integration for Shopware 6
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 1
Forks: 2
Type:shopware-platform-plugin
Requires
- meilisearch/meilisearch-php: ^0.23.0
- shopware/core: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~3.0
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
- symplify/easy-coding-standard: ^11.0
This package is not auto-updated.
Last update: 2025-03-05 18:55:41 UTC
README
Meilisearch plugin is meilisearch adapter for shopware/core. It contains the indexing of entities and an adapter for the entity search.
Installation
composer require madonair/shopware-meilisearch bin/console plugin:refresh bin/console plugin:install --activate Meilisearch bin/console cache:clear
Requirements
MeiliSearch v0.27.0 or newer
Configuration
Add variables in your .env
Variable | Possible values | Description |
---|---|---|
MDNR_MS_HOST |
http://127.0.0.1:7700 |
A MeiliSearch server address |
MDNR_MS_INDEXING_ENABLED |
0 / 1 |
This variable activates the indexing to MeiliSearch |
MDNR_MS_MASTER_KEY |
MASTER_KEY |
The master key of the MeiliSearch server |
MDNR_MS_ENABLED |
0 / 1 |
This variable activates the usage of MeiliSearch for your shop |
MDNR_MS_INDEX_PREFIX |
sw |
This variable defines the prefix for the MeiliSearch indices |
MDNR_MS_THROW_EXCEPTION |
0 / 1 |
This variable activates the debug mode, without this variable as = 1 you will get a fallback to mysql without any error message when MeiliSearch is not working |
Indexing
You should clear your cache before indexing with bin/console cache:clear
so the changes from .env can be processed.
Reindex all entities
You can index by executing the command ./bin/console meilisearch:index
, from the prompt of your shell.