0
votes

I've read about full-text search functions in mysql. But in these methods you have to search for exactly right spelled complete words.

For example if your text contains 'Bitdefender 2009' and you search for Bit, you get nothing

SELECT * FROM logs WHERE MATCH (log) AGAINST ('Bit 09' IN BOOLEAN MODE);

So are there any solution for this?

(Is there a technique which would let you search for misspelled keywords as well? for example you search for Bitdefedner)

3

3 Answers

0
votes

You could also turn to Lucene or other specialized search engine mentioned in https://stackguides.com/questions/553055/best-full-text-search-for-mysql

0
votes

You could use the * wildcard AGAINST ('Bit* 09' IN BOOLEAN MODE)

For misspelt keywords you need a separate spellcheck phase.