milanpol / kunstmaan-search-bundle
Improved kunstmaan search bundle
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 911
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.2
- kunstmaan/bundles-cms: ^5.0
README
Symfony bundle for use in Kunstmaan 5.x projects.
Installation
-
Add repository to your composer.json. Make sure you added your SSH key to git.e-sites.nl.
... "repositories": [ { "type": "vcs", "url": "https://gitlab.e-sites.nl/e-sites/kunstmaan/searchbundle.git" } ] ...
-
Require the bundle
$ composer require esites/kunstmaan-search-bundle
SearchBundle
This bundle extends the default search bundle provided by Kunstmaan. It adds wildcard search support and a few configurable options.
-
Enable this bundle in your AppKernel
-
The following options are currently available for configuration (set with their current default values)
esites_kunstmaan_search: use_prefix_wildcard: true use_suffix_wildcard: true minimum_percentage_should_match_word_in_title: 80 minimum_percentage_should_match_word_in_content: 80 boost_tier_query_content_with_wildcard: 1 boost_tier_query_content_without_wildcard: 2 boost_tier_query_title_with_wildcard: 3 boost_tier_query_title_without_wildcard: 4 minimum_amount_of_characters_to_start_search: 3 additional_fields: - name: intro (required if additional_fields is defined) fragment_size: 100 (not required, default = 100) number_of_fragments: 3 (not required, default = 3) - name: description fragment_size: 200 number_of_fragments: 2