eugene2009 Posted December 18, 2009 Share Posted December 18, 2009 Can somebody please help me find a good working script for creating the MySql Fulltext search function? I need the whole script and instructions how to create an index, and everything to make it work. I searched all over google and cant find it. Please help, thank you. Quote Link to comment https://forums.phpfreaks.com/topic/185576-fulltext-search/ Share on other sites More sharing options...
emopoops Posted December 18, 2009 Share Posted December 18, 2009 ALTER TABLE cities ADD city_soundex VARCHAR(4) NOT NULL; UPDATE cities SET city_soundex=LEFT(SOUNDEX(city_name),4); Quote Link to comment https://forums.phpfreaks.com/topic/185576-fulltext-search/#findComment-979843 Share on other sites More sharing options...
fenway Posted December 18, 2009 Share Posted December 18, 2009 ALTER TABLE cities ADD city_soundex VARCHAR(4) NOT NULL; UPDATE cities SET city_soundex=LEFT(SOUNDEX(city_name),4); This has nothing to do with FULLTEXT. Quote Link to comment https://forums.phpfreaks.com/topic/185576-fulltext-search/#findComment-979899 Share on other sites More sharing options...
emopoops Posted December 18, 2009 Share Posted December 18, 2009 yes it does i found it on the fulltext manual page. dont be so quikc to judge Quote Link to comment https://forums.phpfreaks.com/topic/185576-fulltext-search/#findComment-979932 Share on other sites More sharing options...
Adam Posted December 18, 2009 Share Posted December 18, 2009 It was from a user comment: An easy solution to correct for spelling errors for small search items like the name of the city is to build a column that contains the SOUNDEX of each. I've found that using a 4 character SOUNDEX works the best. An example: ALTER TABLE cities ADD city_soundex VARCHAR(4) NOT NULL; UPDATE cities SET city_soundex=LEFT(SOUNDEX(city_name),4); Quote Link to comment https://forums.phpfreaks.com/topic/185576-fulltext-search/#findComment-979941 Share on other sites More sharing options...
emopoops Posted December 18, 2009 Share Posted December 18, 2009 well. in my mind, it was my own comment Quote Link to comment https://forums.phpfreaks.com/topic/185576-fulltext-search/#findComment-979946 Share on other sites More sharing options...
fenway Posted December 18, 2009 Share Posted December 18, 2009 yes it does i found it on the fulltext manual page. dont be so quikc to judge So what? Quote Link to comment https://forums.phpfreaks.com/topic/185576-fulltext-search/#findComment-979983 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.