innomedia / solr
为 SilverStripe CMS 添加对全文搜索引擎(如 Sphinx 和 Solr)的支持
0.1
2024-06-19 14:28 UTC
Requires
- innomedia/solr-php-client: ^1.0
- monolog/monolog: ~1.15
- silverstripe/framework: ^4.0
- symfony/process: ^3.2
- tractorcow/silverstripe-proxy-db: ~0.1
Requires (Dev)
- phpunit/phpunit: ^5.7
- silverstripe/cms: ^4.0
- squizlabs/php_codesniffer: ^3.0
Suggests
- innomedia/fulltextsearch-localsolr: Adds a ready-to-use local Solr server for initial development
- symbiote/silverstripe-queuedjobs: Add background execution of indexing tasks
README
为 SilverStripe CMS 添加对全文搜索引擎(如 Sphinx 和 Solr)的支持。
维护者联系方式
- Hamish Friedlander <hamish (at) silverstripe (dot) com>
需求
- SilverStripe 4.0+
注意:对于 SilverStripe 3.x,请使用 2.x 版本分支。
文档
有关纯 Solr 文档,请参阅 Solr 4.10.4 指南。
有关配置和设置,请参阅 文档,或快速入门指南请参阅 快速入门指南。
有关更新、错误修复和功能的详细信息,请参阅 变更日志。
待办事项
-
移除 includeSubclasses - 实际上并未使用,使代码库更难看,并且 ClassHierarchy 可以在查询时用于大多数相同用例
-
修复查询中的字段引用。应该能够进行
$query->search('Text', 'Content')
搜索,而不是像现在那样进行$query->search('Text', SiteTree::class . '_Content')
搜索-
确保当字段存在于多个类中时,对裸字段的搜索将搜索所有这些字段
-
允许对特定实例进行搜索
-
-
使索引中的字段可由类限制 - 'SiteTree#Content' 限制字段到特定类,也许 'Content->Summary' 允许调用字段对象的特定方法以获取文本
-
允许跟踪用户关系(例如 Children.Foo)
-
更清楚地说明与有状态对象的关系(例如,Parent.Foo,其中 Parent 是可版本化的)会发生什么
-
改进 SearchUpdater
-
当中间对象(A 在 A.B.Foo 中)更新时,使其正常工作
-
允许用户逻辑在字段是用户生成时触发文档的重新索引
-
-
添加用于拼写纠正、文件文本提取和片段生成的通用 API