maxzhang666 / search
用支持弹性搜索服务器的搜索功能替换 Flarum 搜索。
0.1.13
2022-09-06 01:29 UTC
Requires
- php: >=7.4
- elasticsearch/elasticsearch: 7.*
- flarum/core: ^1.2.0
- spatie/elasticsearch-query-builder: ^1.3.0
This package is auto-updated.
Last update: 2024-09-06 10:23:44 UTC
README
搜索用经过验证的 elasticsearch 引擎完全替换了依赖于 MySQL 性能不佳的全文搜索的本地 Flarum 搜索功能。
功能
- 使用您的队列同步讨论到 elastic search,对用户无干扰。
- 将搜索加载时间减少到 400ms 以下(本地测试 50,000 个讨论 260ms)
- 使用 Flarum 的分组权限和标签系统。
- 与 Friends of Flarum Byōbu 兼容。
安装
使用 composer
composer require blomstra/search:*
在管理区域启用扩展并配置设置。
设置
在管理区域启用扩展。现在要初始化现有讨论,请使用以下命令
php flarum blomstra:search:build
所有对讨论的更改都会自动添加和从 elasticsearch 索引中删除。
常见问题解答
我还有其他问题。 通过 https://helpdesk.blomstra.net 联系我们。我们会尽快回复您。如果您有正在运行的订阅,请说明您何时开始您的计划以及您在哪个计划上。在报告错误时,请添加足够的信息。我们更喜欢在这里报告错误,但我们理解有时您可能做不到。
我能否将同步作业调度到另一个队列? 是的
\Blomstra\Search\Observe\Job::$onQueue = 'sync';
- Blomstra 提供管理的 Flarum 主机服务。
- https://blomstra.net
- https://blomstra.community/t/ext-search