views:

94

answers:

3

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)

A: 

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

For misspelt keywords you need a separate spellcheck phase.

James Fryer
A: 

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

Unreason