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.
- [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
Add NovaeZSolrSearchExtraBundle in your composer.json:
composer require novactive/ezsolrsearchextrabundle
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(),
// ...
);
}
Add the following routing config
solr:
resource: "@EzSolrSearchExtraBundle/Controller/"
type: annotation
prefix: /
Add the following field to your solr schema
<dynamicField name="*_mdt" type="date" indexed="true" stored="true" multiValued="true"/>
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"/>
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