Flarum 安装 Meilisearch 以支持高级搜索功能
首先安装 Meilisearch:
1、安装 Meilisearch 库
composer require meilisearch/meilisearch-php
2、安装 flarum-ext-scout 扩展
composer require clarkwinkelmann/flarum-ext-scout
3、后台启用并配置 Scout Search
驱动 选择 Meilisearch
填入 Meilisearch 主机地址
和 Meilisearch 秘钥
4、执行命令行
php flarum scout:import-all
php flarum scout:import-all Import all Flarum models into the search index
(a shortcut to scout:import with every searchable class known to Flarum)
php flarum scout:flush {model} Flush all of the model's records from the index
php flarum scout:import {model} Import the given model into the search index
php flarum scout:index {name} Create an index (generally not needed)
php flarum scout:delete-index {name} Delete an index (generally not needed)
本文参考: