novactive/ezsolrsearchextrabundle

A bundle which extend ezplatform solr search handler

Installs: 54 479

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 17

Forks: 6

Open Issues: 0

Type:ezplatform-bundle

v3.2.0 2024-04-03 07:51 UTC

README

This repository is what we call a "subtree split": a read-only copy of one directory of the main repository. It is used by Composer to allow developers to depend on specific bundles.

If you want to report or contribute, you should instead open your issue on the main repository: https://github.com/Novactive/Nova-eZPlatform-Bundles

Documentation is available in this repository via .md files but also packaged here: https://novactive.github.io/Nova-eZPlatform-Bundles/master/SolrSearchExtraBundle/README.md.html

Downloads Latest version License

An eZPlatform bundle which extend the solr search handler.

Features

Installation

Use Composer

Add NovaeZSolrSearchExtraBundle in your composer.json:

composer require novactive/ezsolrsearchextrabundle

Register the bundle

Then inject the bundle in the bundles.php of your application.

    Novactive\EzSolrSearchExtraBundle\EzSolrSearchExtraBundle::class => [ 'all'=> true ],
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Novactive\EzSolrSearchExtraBundle\EzSolrSearchExtraBundle(),
        // ...
    );
}

Routing config

Add the following routing config

solr:
    resource: "@EzSolrSearchExtraBundle/Controller/"
    type:     annotation
    prefix:   /

Multiple date field

Add the following field to your solr schema

<dynamicField name="*_mdt" type="date" indexed="true" stored="true" multiValued="true"/>

Date range and multiple date range field

Add the following field to your solr schema

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

Docs

Publish date boosting

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

https://wiki.apache.org/solr/SolrRelevancyFAQ

Highlighting

https://lucene.apache.org/solr/guide/6_6/highlighting.html

Stopwords/Synonyms managment

https://lucene.apache.org/solr/guide/6_6/managed-resources.html