novactive/ezsolrsearchextrabundle

一个扩展 ezplatform solr 搜索处理器的包

安装次数: 51 018

依赖项: 1

建议者: 0

安全性: 0

星标: 1

关注者: 17

分支: 6

开放问题: 0

类型:ezplatform-bundle

v3.0.2 2024-07-23 07:57 UTC

README

这个仓库是我们所说的“子树分割”:主仓库中一个目录的只读副本。它被 Composer 用于允许开发者依赖于特定的包。

如果您想报告或贡献,请转而在主仓库中打开问题: https://github.com/Novactive/Nova-eZPlatform-Bundles

文档可通过此仓库中的 .md 文件访问,也在此打包: https://novactive.github.io/Nova-eZPlatform-Bundles/master/SolrSearchExtraBundle/README.md.html

Downloads Latest version License

一个扩展 solr 搜索处理器的 eZPlatform 包。

特性

安装

使用 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"/>

文档

发布日期提升

http://lucene.apache.org/solr/guide/6_6/the-dismax-query-parser.html#TheDisMaxQueryParser-Thebf_BoostFunctions_Parameter

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