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
Requires
- php: ^7.3 || ^8.0
- ezsystems/ezplatform-solr-search-engine: *
This package is auto-updated.
Last update: 2024-12-20 11:22:39 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
An eZPlatform bundle which extend the solr search handler.
Features
- [Implemented] Binary file plain text content indexation in the full text field
- [Implemented] FullText criterion to with extra parameters
- search and boost multiple fields
- boost depending on publish date
- boost on phrases matches
- boost on exact matches
- [Implemented] Custom field configuration
- [Implemented] Exact matches boosting configuration
- [WIP] Boost doc based on publish date (newer docs score higher)
- [WIP] Highlighting
- [Implemented] Manage stopwords and synonyms from eZ Platform admin interface
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
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