Answer the question
In order to leave comments, you need to log in
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),
]
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question