https://github.com/bolt/tnt-search-engine
A search engine for Bolt using TNTSearch
https://github.com/bolt/tnt-search-engine
Last synced: about 2 months ago
JSON representation
A search engine for Bolt using TNTSearch
- Host: GitHub
- URL: https://github.com/bolt/tnt-search-engine
- Owner: bolt
- License: mit
- Created: 2021-12-06T09:26:58.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-31T12:54:46.000Z (almost 3 years ago)
- Last Synced: 2025-04-21T10:54:13.400Z (about 2 months ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TNT Search Engine extension
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:
| Keyword | Bolt naive search | With this extension |
|---|---|---|
| Oranges | ✅ | ✅ |
| oranges | ✅ | ✅ |
| orangse | ❌ | ✅ |
| oranges and apples | ✅ | ✅ |
| apples and oranges | ❌ | ✅ |
| appels and orangse | ❌ | ✅ |
| healthy apples | ❌ | ✅ |
| healthy fruit | ❌ | ✅ |## Installation
```bash
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
```