Download the PHP package open-southeners/laravel-scout-advaced-meilisearch without Composer
On this page you can find all versions of the php package open-southeners/laravel-scout-advaced-meilisearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open-southeners/laravel-scout-advaced-meilisearch
More information about open-southeners/laravel-scout-advaced-meilisearch
Files in open-southeners/laravel-scout-advaced-meilisearch
Package laravel-scout-advaced-meilisearch
Short Description Advanced Meilisearch integration with Laravel Scout
License MIT
Informations about the package laravel-scout-advaced-meilisearch
Laravel Scout Advanced Meilisearch
Advanced Meilisearch integration with Laravel Scout.
Getting started
Install the package using Composer:
Filterable and sortable attributes
For sending filterable and sortable attributes to your Meilisearch server, configure your already searchable models like so:
Using PHP attributes
In case your project is using PHP 8, you can do this by attributes on the model class or the toSearchableArray
method:
And finally run the following artisan command:
You could also run this command with --wait
option which tells the command to wait for the task to finish:
Remember to check the official documentation about these filters and sorts.
Dumps
Create Meilisearch data dumps (data backups that will be saved on your Meilisearch server), with the following command:
As scout:update
command, this also have a --wait
option:
Read more about Meilisearch dumps here.
Tasks
List all tasks via command line, just running the following:
They can be even filtered! (see more options running it with --help
)
Canceling enqueued tasks
Also can cancel tasks with a very simple command, you can either cancel an specific task or multiple:
The previous command will cancel task with UID = 1. If you wish to cancel multiple you could send them separated by comma or using options like:
So this will cancel all tasks that were enqueued before 1 day (can also send 1m, 1y... as in the background this is using Carbon::now()->add()
& Carbon::now()->sub()
methods)
Prune finished tasks
As canceling tasks won't make them disappear from the tasks history, you can just run the following:
Just for safety for debug purposes, this command does not remove those tasks that failed, if you wish to do so, run the command with --include-failed
like so:
Don't worry, this will not remove tasks that were enqueued and not finished, as stated by Meilisearch official docs (see link just below).
Read more about Meilisearch tasks here.
Partners
License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-scout-advaced-meilisearch with dependencies
illuminate/console Version ^9.0 || ^10.0 || ^11.0
laravel/scout Version ^10.0
meilisearch/meilisearch-php Version ^1.0