Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Valchev committed Dec 6, 2021
1 parent 2441e4e commit 247ab1f
Showing 1 changed file with 45 additions and 5 deletions.
50 changes: 45 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,55 @@
# Acme ReferenceExtension
# TNT Search Engine extension

Author: YourNameHere
Author: Ivo Valchev

This Bolt extension can be used as a starting point to base your own extensions on.
A search engine for Bolt using TNTSearch

Installation:
## 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 acmecorp/reference-extension
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

Expand Down

0 comments on commit 247ab1f

Please sign in to comment.