D
D
Dmitry Lakhno2018-04-17 19:12:37
Search engines
Dmitry Lakhno, 2018-04-17 19:12:37

What is a good full text search for Laravel?

What it is possible to use good full-text search in the table >10 million records.
Now I use TNTSearch, but it's not very good at searching, for example, the query "Dmitry" returns all records with similar names in Cyrillic, and there are also records in Latin (Dmitriy, Dmitriu, Dmitrii).
Here is how I set up the TNTSearch config:

'tntsearch' => [
        'storage'  => storage_path('search_index'), //place where the index files will be stored
        'fuzziness' => env('TNTSEARCH_FUZZINESS', true),
        'fuzzy' => [
            'prefix_length' => 2,
            'max_expansions' => 50,
            'distance' => 4
        ],
        'asYouType' => true,
        'searchBoolean' => env('TNTSEARCH_BOOLEAN', false),
    ]

Are there any solutions for this? I also considered the Elastic option, but somehow everything is complicated there, as I understand it, a separate server is needed there, and whether it can find it, as I described in the example, did not find any information.
Prompt who implemented similar tasks with search, thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin B., 2018-04-17
@lahno

Elastic (by the way, you can deploy it on the current server of your site if you have a VPS), Shphinx, I think these are the best solutions, with regards to using these libs with Laravel, then there are probably half a hundred manuals on this subject, so I don’t think to chew meaning

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question