You are here:  » Search description in setup.sql

Support Forum



Search description in setup.sql

Submitted by pat on Wed, 2007-05-16 13:06 in

Hello

I read the node 224 to include description in search, i'd like to know how i can modify setup.sql to include the modification in the installation so the search will always be made on name AND description.

I plan on installing the script on several sites and i'd like avoiding to modify the db for every site.

Thanks

Pat

Submitted by support on Mon, 2007-05-21 08:06

Hi Pat,

To modify setup.php look for the following line (102)

FULLTEXT KEY name_2 (name)

...and change this as follows:

FULLTEXT KEY name_2 (name),
FULLTEXT KEY ft_namedescription (name,description)

(note how you need to add a comma after the existing line...!)

Don't forget that you will also need the corresponding modifications in search.php to match they query against both name and description - described in this post in the other thread...

http://www.pricetapestry.com/node/224#comment-1304

Hope this helps!
Cheers,
David.