How to find a "close word" in MySQL?

For example, I want to find the word " marple ", this should return a string with the close or exact word " marble ", " maple ',' marple , etc.

How to do this in mysql query? or is it better to give a sentence for a word, if any?

+4
source share
3 answers

SOUNDEX function .

"Two lines that sound almost the same should have the same soundex lines."

+4
source

In MySQL, you can try using the soundex function, but this is not a real solution. Use Sphinx or Lucene.

+1
source

You can use this

$ sql = "select * from tbl_name, where is your_field, for example '% is your search keyword%'";

0
source

Source: https://habr.com/ru/post/1306761/


All Articles