Answer the question
In order to leave comments, you need to log in
Good php search by sqlite database?
There is a database (sqlite). And there are 25 thousand records. The name of the music and the text of the song for the telegram bot are stored. The bot itself is written in php. There search, type LIKE %%.
I looked at the logs there, people write the name of the music several times. Are there any normal search engines to work when there are minor errors in the query.
Answer the question
In order to leave comments, you need to log in
In such cases, IMHO, you should implement a phonetic search. Here is an article on Habré .
The dmstring function using the Daitch - Mokotoff Soundex phonetic algorithm will modify the search query into code. Examples from a post on Habré:
dmstring('Арнольд Шварцнеггер') == dmstring('Arnold Schwarzenegger') == 096830 479465
dmstring('Орнольд Шворцнегир') == dmstring('Arnold Schwarzenegger') == 096830 479465
SQLite supports full text search.
Getting Started with SQLite Full-text Search
It is not recommended to implement full-text search on MySQL
. For this, ElasticSearch and the like are more suitable.
It is better to immediately study this technology, since then when there are a lot of records, the search will become slow.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question