amb/tntsearch-component

Laminas component for TNTSearch

dev-main 2023-02-19 18:53 UTC

This package is auto-updated.

Last update: 2024-12-19 22:51:06 UTC


README

Install

composer require amb/tntsearch-component

Set Up

In .env

TNTSEARCH_DRIVER=
TNTSEARCH_HOST=
TNTSEARCH_DATABASE=
TNTSEARCH_USERNAME=
TNTSEARCH_PASSWORD=
TNTSEARCH_STORAGE= #optional, defaults to data/tntsearch
TNTSEARCH_TOKENIZER= #optional
TNTSEARCH_STEMMER=TeamTNT\TNTSearch\Stemmer\PorterStemmer::class #optional

In config/config.php

$aggregator = new ConfigAggregator([
    ...
    \AMB\TNTSearch\ConfigProvider::class,
    ...