Download the PHP package kind-work/meili-search without Composer
On this page you can find all versions of the php package kind-work/meili-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kind-work/meili-search
More information about kind-work/meili-search
Files in kind-work/meili-search
Package meili-search
Short Description Use MeiliSearch to provide instant search for Statamic V3.
License
Informations about the package meili-search
This addon is no longer supported. For a supported addon please see: https://statamic.com/addons/elvenstar/statamic-meilisearch
Use MeiliSearch to provide instant search
This Statamic v3 addon provides an easy way to integrate with MeiliSearch, a powerful, fast, open-source, easy to use and deploy search engine.
Requirements
- MeiliSearch 0.14+
- PHP 7.2+
- Statamic v3+
- Laravel 7+
Installation
You can install this addon via composer with the following command or from the Statamic control panel.
For instructions on how to install MeiliSearch please see their documentation.
Configuration
.env
Configure the addon by setting your MeiliSearch URL and API Keys in your .env
file.
After you add your master key you can use the following command to get your private and public keys.
Settings
To configure what collections you would like to index, publish the config file to config/meili-search.php
by running the following command. Then customize the indexes section of the file.
Indexing
When a collection entry is created, published, unpublished, saved or deleted via the Statamic control panel it will automatically be added, updated in or removed from the indexes configured for the appropriate collection.
The following connivence commands are available to help indexing, especially when updating content files manually.
Searching
Searching is best done with JavaScript talking to MeiliSearch directly. This will give you the most performant real time searches. Here is a simple example of how you could do this with AlpineJS and TailwindCCS.
Note: These steps assume you already have AlpineJS and Tailwind CCS already set up and working in your project.
Install the MeiliSearch NPM module
or
Import and set up MeiliSearch
Customize your Search Component
Here is a basic autocomplete using AlpineJS and Tailwind CCS, feel free copy it, customize it, or just use it as inspiration to do something completely different.
Changelog
Please see the Release Notes for more information what has changed recently.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
License
This is commercial software. You may use the package for your sites. Each site requires its own license. You can purchase a licence from The Statamic Marketplace.