F
F
Fissium2018-07-17 23:27:21
Laravel
Fissium, 2018-07-17 23:27:21

How to set up TNTSearch search on Laravel?

Hello.
Implemented the TNTSearch search engine into a site written in Laravel.
The following is in the config/scout.php settings:

'tntsearch' => [
        'storage'  => storage_path(),
        'fuzziness' => env('TNTSEARCH_FUZZINESS', true),
        'fuzzy' => [
            'prefix_length' => 2,
            'max_expansions' => 20,
            'distance' => 4,
        ],
        'asYouType' => false,
    ]

This is the so-called fuzzy search. However, if you enter a query in the search box that exactly matches the title of an article, then it may not be in the search results at all.
Is it possible to combine crisp and fuzzy searches for TNTSearch? And how can this be done?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question