ivampiresp / blomstra-search
用基于弹性搜索服务器的搜索替换 Flarum 的搜索,无需 SSL
v0.0.1
2024-09-25 16:51 UTC
Requires
- php: >= 8.0
- elasticsearch/elasticsearch: 7.*
- flarum/core: ^1.2.0
- spatie/elasticsearch-query-builder: ^1.3.0
README
搜索功能将 Flarum 原生的搜索功能,从依赖于性能较差的 MySQL 全文搜索,替换为完全依赖于经过验证的 Elasticsearch 引擎。
特性
- 使用您的队列同步讨论到 Elasticsearch,对用户无干扰。
- 将搜索加载时间缩短到 400ms 以下(本地测试,50,000 个讨论 260ms)
- 使用 Flarum 的群组权限和标签系统。
- 与 Friends of Flarum Byōbu 兼容。
安装
使用 composer
composer require blomstra/search:*
在管理区域启用扩展并配置设置。
设置
在您的管理区域中启用扩展。现在要初始化现有讨论,请使用以下命令
php flarum blomstra:search:index
所有对讨论的更改都会自动添加到并从 Elasticsearch 索引中删除。
常见问题解答
我还有其他问题。 请通过 https://helpdesk.blomstra.net 联系我们。我们将尽快回复您。如果您有运行的订阅,请说明您何时开始计划以及/或您处于哪个计划。在报告错误时,请添加足够的信息。我们更喜欢在这里报告错误,但我们理解有时您可能无法这样做。
我能否将同步作业调度到另一个队列? 可以
\Blomstra\Search\Observe\Job::$onQueue = 'sync';
- Blomstra 提供 Flarum 管理托管。
- https://blomstra.net
- https://blomstra.community/t/ext-search