This module adds support for connecting with meilisearch as (multi-lingual) full-text search engine.
An open-source, lightning-fast, and hyper-relevant search engine that fits effortlessly into your workflow.
- SilverStripe 4.x and 5.x
- PHP 8.1
- meilisearch 1.3 - self hosted
(due to missing supoprt for authorization keys.)
composer require bimthebam/silverstripe-meilisearch ^1.0
This module requires a single environment variable to be defined: MEILISEARCH_HOST_AND_PORT
e.g. MEILISEARCH_HOST_AND_PORT=http://your-meilisearch-host:7700
Run the buit-in task RebuildAllIndexesTask, which will create all the needed indexes within your meilisearch instance and fills them up with contents.
Although not neccessary, it is suggested to run the task from CLI.
e.g. sake dev/tasks/meilisearch-rebuild-all-indexes
This module comes with a pre-defined index for SiteTree. So searching in page contents should mostly work out of the box.
To start, simply add a new page of type SearchPage to your site tree.
Documentation incomplete
- Add support for authentication keys
- Complete documentation for custom indexes