Jump to content

Fulltext Search


eugene2009

Recommended Posts

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.

Link to comment
Share on other sites

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);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.