bolt / tnt-search-engine
A search engine for Bolt using TNTSearch
Installs: 391
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 2
Open Issues: 1
Type:bolt-extension
Requires
- php: >=7.2.9
- teamtnt/tntsearch: ^2.8
- twig/twig: ^2.12 | ^3.0
Requires (Dev)
- bolt/core: ^4.1 || ^5.0
- symplify/easy-coding-standard: ^8.3
README
Author: Ivo Valchev
A search engine for Bolt using TNTSearch
What does it do?
More intuitive, fuzzy search.
For example, a page has the following title: Oranges and apples are healty
By default, the following searches will show up the page as a result:
Installation
composer require bolt/tnt-search-engine
Generate the index
For the search to work, TNTSearch requires an index of all relevant data that will be used for the search. The extension provides several ways to (re-)generate the index:
Console command
php bin/console tnt-search:generate
Controller-activated
You can (re-)generate the index by making a request to /bolt/tnt-search/generate
.
Configuration
You can alter the how the search works in config/extensions/bolt-tntsearch.yaml
.
Running PHPStan and Easy Codings Standard
First, make sure dependencies are installed:
COMPOSER_MEMORY_LIMIT=-1 composer update
And then run ECS:
vendor/bin/ecs check src