fromholdio / silverstripe-sherlock
一个 SilverStripe 模块,它使您能够构建一个具有全文搜索、相关性和权重的特定项目“搜索引擎”。
1.2.0
2023-05-31 05:38 UTC
Requires
Suggests
- fromholdio/silverstripe-fulltext-filters: This module adds three fulltext SearchFilters to your SilverStripe project: FulltextBoolean, FulltextRelevance and FulltextBooleanRelevance
- fromholdio/silverstripe-fulltext-innodb: A small SilverStripe module that enables usage of fulltext indexes with the InnoDB engine.
This package is auto-updated.
Last update: 2024-08-30 01:28:53 UTC
README
一个 SilverStripe 模块,它使您能够构建一个具有全文搜索、相关性和权重的特定项目“搜索引擎”。
本模块本身功能有限 - 它提供框架以实现针对您项目的特定“搜索引擎”。
请参阅 fromholdio/silverstripe-sherlock-pages 以获取示例实现,该实现使用此核心模块并为所有页面实现搜索引擎,通过相关性排序,并将标题和MenuTitle的匹配权重高于内容中的匹配。
抱歉,我还没有时间为此编写很多文档。请参阅上述模块的源代码,或者在此期间提交任何问题。
从高层次上讲,本模块旨在
- 全文搜索
- 使用全文相关性评分并按此排序结果
- 在一个搜索中创建和搜索多个全文索引,为每个索引的相关性评分添加不同的权重,并相应地排序结果
- 定义搜索字段,如果匹配则直接跳转到第一个找到的结果(例如,如果搜索短语是精确的页面/数据对象标题或urlsegment匹配 - 完全可选)
- 维护搜索日志以供未来的分析/报告
- 提供幂等的搜索引擎构建任务,以维护条目
要求
- silverstripe-cms ^4
- symbiote/silverstripe-gridfieldextensions ^3.0
- sheadawson/silverstripe-dependentdropdownfield ^2.0
- fromholdio/silverstripe-commonancestor ^1.0
推荐
- fromholdio/silverstripe-fulltext-innodb ^1.0
- fromholdio/silverstripe-fulltext-filters ^1.0
- fromholdio/silverstripe-sherlock-pages ^1.0
安装
composer require fromholdio/silverstripe-sherlock
详细说明
详细说明和使用示例即将推出。
请参阅 fromholdio/silverstripe-sherlock-pages 以获取使用示例。
待办事项
- 利用搜索日志以智能/有趣的搜索分析报告的形式
- 仅需要 silverstripe-framework,而不是 silverstripe-cms
- 详细的文档
感谢 & 致谢
感谢这些最优秀的项目提供灵感