novactive / ezsolrsearchextrabundle
一个扩展 ezplatform solr 搜索处理器的包
v3.0.2
2024-07-23 07:57 UTC
Requires
- php: ^7.3 || ^8.0
- ezsystems/ezplatform-solr-search-engine: *
This package is auto-updated.
Last update: 2024-09-23 08:37:17 UTC
README
这个仓库是我们所说的“子树分割”:主仓库中一个目录的只读副本。它被 Composer 用于允许开发者依赖于特定的包。
如果您想报告或贡献,请转而在主仓库中打开问题: https://github.com/Novactive/Nova-eZPlatform-Bundles
文档可通过此仓库中的 .md
文件访问,也在此打包: https://novactive.github.io/Nova-eZPlatform-Bundles/master/SolrSearchExtraBundle/README.md.html
一个扩展 solr 搜索处理器的 eZPlatform 包。
特性
- [已实现] 在全文字段中索引二进制文件的纯文本内容
- [已实现] 带有额外参数的 FullText 条件
- 搜索和提升多个字段
- 根据发布日期提升
- 短语匹配提升
- 精确匹配提升
- [已实现] 自定义字段配置
- [已实现] 精确匹配提升配置
- [进行中] 根据发布日期提升文档(较新的文档得分更高)
- [进行中] 突出显示
- [已实现] 从 eZ Platform 管理界面管理停用词和同义词
安装
使用 Composer
在您的 composer.json 中添加 NovaeZSolrSearchExtraBundle
composer require novactive/ezsolrsearchextrabundle
注册包
然后,将包注入您应用程序的 bundles.php
文件中。
Novactive\EzSolrSearchExtraBundle\EzSolrSearchExtraBundle::class => [ 'all'=> true ],
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Novactive\EzSolrSearchExtraBundle\EzSolrSearchExtraBundle(), // ... ); }
路由配置
添加以下路由配置
solr: resource: "@EzSolrSearchExtraBundle/Controller/" type: annotation prefix: /
多个日期字段
将以下字段添加到您的 solr 架构中
<dynamicField name="*_mdt" type="date" indexed="true" stored="true" multiValued="true"/>
日期范围和多个日期范围字段
将以下字段添加到您的 solr 架构中
<fieldType name="daterange" class="solr.DateRangeField" docValues="false"/> <dynamicField name="*_dtr" type="daterange" indexed="true" stored="true"/> <dynamicField name="*_mdtr" type="daterange" indexed="true" stored="true" multiValued="true"/>
文档
发布日期提升
https://wiki.apache.org/solr/SolrRelevancyFAQ
突出显示
https://lucene.apache.org/solr/guide/6_6/highlighting.html
停用词/同义词管理
https://lucene.apache.org/solr/guide/6_6/managed-resources.html